Skip to content

Commit

Permalink
removing api service
Browse files Browse the repository at this point in the history
  • Loading branch information
muku314115 committed Aug 1, 2024
1 parent c666b9d commit 365f992
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 2,350 deletions.
3 changes: 1 addition & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ func main() {
redis.RedisClient = redis.NewRedisClient()

service.ConfigureRelayer()
service.StartCollectorServer()

wg.Add(1)
go service.StartApiServer()
go service.StartCollectorServer()
wg.Wait()
}
3 changes: 0 additions & 3 deletions config/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ type Settings struct {
RedisPort string
RelayerRendezvousPoint string
RelayerPrivateKey string
AuthReadToken string
SlackReportingUrl string
DataMarketAddress string
}
Expand All @@ -27,7 +26,6 @@ func LoadConfig() {
RedisPort: getEnv("REDIS_PORT", ""),
RelayerRendezvousPoint: getEnv("RELAYER_RENDEZVOUS_POINT", ""),
RelayerPrivateKey: getEnv("RELAYER_PRIVATE_KEY", ""),
AuthReadToken: getEnv("AUTH_READ_TOKEN", ""),
SlackReportingUrl: getEnv("SLACK_REPORTING_URL", ""),
DataMarketAddress: getEnv("DATA_MARKET_ADDRESS", ""),
}
Expand All @@ -51,7 +49,6 @@ func LoadConfig() {
log.Fatalf("Missing required environment variables: %v", missingEnvVars)
}

checkOptionalEnvVar(config.AuthReadToken, "AUTH_READ_TOKEN")
checkOptionalEnvVar(config.SlackReportingUrl, "SLACK_REPORTING_URL")
checkOptionalEnvVar(config.RedisHost, "REDIS_HOST")
checkOptionalEnvVar(config.RedisPort, "REDIS_PORT")
Expand Down
Loading

0 comments on commit 365f992

Please sign in to comment.