Skip to content

Commit

Permalink
Updated branch to latest master
Browse files Browse the repository at this point in the history
  • Loading branch information
icellan committed May 3, 2022
1 parent 111d390 commit 036ea72
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 19 deletions.
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ type (
Mongo *datastore.MongoDBConfig `json:"mongodb" mapstructure:"mongodb"`
Monitor *MonitorOptions `json:"monitor" mapstructure:"monitor"`
NewRelic *NewRelicConfig `json:"new_relic" mapstructure:"new_relic"`
Notifications *NotificationsConfig `json:"notifications" mapstructure:"notifications"`
Paymail *PaymailConfig `json:"paymail" mapstructure:"paymail"`
Redis *RedisConfig `json:"redis" mapstructure:"redis"`
RequestLogging bool `json:"request_logging" mapstructure:"request_logging"`
Expand Down
6 changes: 3 additions & 3 deletions config/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@ func (s *AppServices) loadBux(ctx context.Context, appConfig *AppConfig, testMod
}

if appConfig.Monitor != nil && appConfig.Monitor.Enabled {
if appConfig.Monitor.CentrifugeServer == "" {
if appConfig.Monitor.BuxAgentURL == "" {
err = errors.New("CentrifugeServer is required for monitoring to work")
return
}
options = append(options, bux.WithMonitoring(ctx, &chainstate.MonitorOptions{
Debug: appConfig.Monitor.Debug,
CentrifugeServer: appConfig.Monitor.CentrifugeServer,
BuxAgentURL: appConfig.Monitor.BuxAgentURL,
MonitorDays: appConfig.Monitor.MonitorDays,
Token: appConfig.Monitor.Token,
AuthToken: appConfig.Monitor.AuthToken,
FalsePositiveRate: appConfig.Monitor.FalsePositiveRate,
MaxNumberOfDestinations: appConfig.Monitor.MaxNumberOfDestinations,
SaveTransactionDestinations: appConfig.Monitor.SaveTransactionDestinations,
Expand Down
4 changes: 2 additions & 2 deletions go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 11 additions & 14 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 036ea72

Please sign in to comment.