Skip to content

Commit 6330f6d

Browse files
committed
fix: reduce context timeout
1 parent 46410ef commit 6330f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

relayer/chains/solana/listener.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (p *Provider) listenByPolling(ctx context.Context, fromSignature string, bl
122122

123123
func (p *Provider) processTxSignature(ctx context.Context, sign solana.Signature, blockInfo chan *relayertypes.BlockInfo) (*solrpc.GetTransactionResult, error) {
124124
txVersion := uint64(0)
125-
timeoutCtx, cancel := context.WithTimeout(ctx, 100*time.Second)
125+
timeoutCtx, cancel := context.WithTimeout(ctx, 60*time.Second)
126126
defer cancel()
127127
txn, err := p.client.GetTransaction(timeoutCtx, sign, &solrpc.GetTransactionOpts{MaxSupportedTransactionVersion: &txVersion})
128128
if err != nil {

0 commit comments

Comments
 (0)