Skip to content

Commit 3eed99a

Browse files
committed
fix(node): update max interval of 30s for retry
1 parent 735fd11 commit 3eed99a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/analytic/node_record.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type RetryConfig struct {
3131

3232
var defaultRetryConfig = RetryConfig{
3333
BaseInterval: 5 * time.Second,
34-
MaxInterval: 5 * time.Minute,
34+
MaxInterval: 30 * time.Second,
3535
MaxRetries: 10,
3636
BackoffMultiple: 1.5,
3737
}
@@ -120,6 +120,7 @@ func markConnectionSuccess(envID uint64) {
120120
state.FailureCount = 0
121121
state.LastSuccess = time.Now()
122122
state.NextRetry = time.Now()
123+
updateNodeStatus(envID, true, "connection_success")
123124
}
124125

125126
func logCurrentNodeStatus(prefix string) {

0 commit comments

Comments
 (0)