Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya1702 committed Jan 16, 2024
1 parent 488c4a3 commit 4371909
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions services/horizon/internal/ingest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,6 @@ type Config struct {
MaxLedgerPerFlush uint32
}

// LocalCaptiveCoreEnabled returns true if configured to run
// a local captive core instance for ingestion.
func (c Config) LocalCaptiveCoreEnabled() bool {
// c.RemoteCaptiveCoreURL is always empty when running local captive core.
return c.RemoteCaptiveCoreURL == ""
}

// RemoteCaptiveCoreEnabled returns true if configured to run
// a remote captive core instance for ingestion.
func (c Config) RemoteCaptiveCoreEnabled() bool {
return c.RemoteCaptiveCoreURL != ""
}

const (
getLastIngestedErrMsg string = "Error getting last ingested ledger"
getIngestVersionErrMsg string = "Error getting ingestion version"
Expand Down

0 comments on commit 4371909

Please sign in to comment.