Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions client/interceptors/uci_retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ func RetryUnaryClientInterceptor(
return true
}

// Retry when the connection drops (e.g. "connection timed out").
// This is transient: gRPC will reconnect on the next attempt.
if code == codes.Unavailable {
return true
}

if strings.Contains(err.Error(), "please retry for collection in finalized block") {
return true
}
Expand Down
2 changes: 1 addition & 1 deletion scanner/output_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewScriptResultProcessor(
handler ScriptResultHandler,
) *ScriptResultProcessor {
r := &ScriptResultProcessor{
resultsChan: make(chan ProcessedAddressBatch, 10000),
resultsChan: make(chan ProcessedAddressBatch, 500),
handler: handler,
log: logger.With().Str("component", "script_result_processor").Logger(),
}
Expand Down
Loading