this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

reset backoff after successful connection in fedmgr (#471)

authored by

Whyrusleeping and committed by
GitHub
51ad672b 4bfee6d5

+5
+5
bgs/fedmgr.go
··· 415 415 416 416 log.Info("event subscription response code: ", res.StatusCode) 417 417 418 + curCursor := cursor 418 419 if err := s.handleConnection(ctx, host, con, &cursor, sub); err != nil { 419 420 if errors.Is(err, ErrTimeoutShutdown) { 420 421 log.Infof("shutting down pds subscription to %s, no activity after %s", host.Host, EventsTimeout) 421 422 return 422 423 } 423 424 log.Warnf("connection to %q failed: %s", host.Host, err) 425 + } 426 + 427 + if cursor > curCursor { 428 + backoff = 0 424 429 } 425 430 } 426 431 }