diff options
Diffstat (limited to 'examples/stats-client/stats_api.go')
-rw-r--r-- | examples/stats-client/stats_api.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/stats-client/stats_api.go b/examples/stats-client/stats_api.go index 0ccfa89..fa39b54 100644 --- a/examples/stats-client/stats_api.go +++ b/examples/stats-client/stats_api.go @@ -67,7 +67,8 @@ func main() { if *async { var statsChan chan core.ConnectionEvent - client = statsclient.NewStatsClient(*statsSocket) + client = statsclient.NewStatsClient(*statsSocket, statsclient.SetSocketRetryPeriod(1*time.Second), + statsclient.SetSocketRetryTimeout(10*time.Second)) c, statsChan, err = core.AsyncConnectStats(client, core.DefaultMaxReconnectAttempts, core.DefaultReconnectInterval) if err != nil { log.Fatalln("Asynchronous connecting failed:", err) |