diff --git a/link/docs/configuration.md b/link/docs/configuration.md index 61fe322ea..dbdbf1465 100644 --- a/link/docs/configuration.md +++ b/link/docs/configuration.md @@ -78,7 +78,7 @@ chains: | Field | Type | Description | |------------------------|----------|--------------------------------------------------------------------------------| -| `dispatchPollInterval` | duration | How often the dispatcher polls storage for dispatchable packets. Defaults to 5s. | +| `dispatchPollInterval` | duration | How often the dispatcher polls storage for dispatchable packets. Defaults to 1s. | | `chainOverrides` | list | Per-chain relaying overrides (see below). | | `connections` | list | Bidirectional connections to actively relay (see below). | diff --git a/link/internal/relay/dispatch/dispatcher.go b/link/internal/relay/dispatch/dispatcher.go index 00c30ea51..b932cb4e5 100644 --- a/link/internal/relay/dispatch/dispatcher.go +++ b/link/internal/relay/dispatch/dispatcher.go @@ -14,7 +14,7 @@ import ( ) // DefaultPollInterval how often the dispatcher polls for dispatchable packets. -const DefaultPollInterval = 5 * time.Second +const DefaultPollInterval = 1 * time.Second // ErrTransferAlreadyInPipeline the transfer is already being relayed. var ErrTransferAlreadyInPipeline = errors.New("transfer already in pipeline") diff --git a/link/internal/relay/pipeline/opts.go b/link/internal/relay/pipeline/opts.go index 9c5bd1440..6685a4ef6 100644 --- a/link/internal/relay/pipeline/opts.go +++ b/link/internal/relay/pipeline/opts.go @@ -12,7 +12,7 @@ import ( // Batch defaults applied when a chain has no overrides. const ( DefaultBatchSize = 50 - DefaultBatchTimeout = 10 * time.Second + DefaultBatchTimeout = 3 * time.Second DefaultTimeoutBatchTimeout = time.Minute )