Skip to content

Commit

Permalink
Merge "[FAB-7928] Eventhub reg. unexpectedly fails"
Browse files Browse the repository at this point in the history
  • Loading branch information
muralisrini authored and Gerrit Code Review committed Jan 30, 2018
2 parents 044d66d + 3633f35 commit d7dd231
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions peer/node/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,12 @@ func initializeEventsServerConfig(mutualTLS bool) *producer.EventsServerConfig {
TimeWindow: viper.GetDuration("peer.events.timewindow"),
BindingInspector: comm.NewBindingInspector(mutualTLS, extract)}

if ehConfig.TimeWindow == 0*time.Minute {
defaultTimeWindow := 15 * time.Minute
logger.Warningf("`peer.events.timewindow` not set; defaulting to %s", defaultTimeWindow)
ehConfig.TimeWindow = defaultTimeWindow
}

return ehConfig
}

Expand Down

0 comments on commit d7dd231

Please sign in to comment.