Skip to content

Commit 52a1f51

Browse files
committed
Fix exhaustive switch lint and tidy integration-tests modules
Add missing api.ConflictError and api.LimitExceededError cases to both switch statements in handler.go. Run go mod tidy on integration-tests and integration-tests/load.
1 parent a3e24fc commit 52a1f51

5 files changed

Lines changed: 22 additions & 18 deletions

File tree

core/services/gateway/handlers/confidentialrelay/handler.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,8 @@ func (h *handler) errorResponse(
380380
case api.HandlerError:
381381
case api.RequestTimeoutError:
382382
case api.StaleNodeResponseError:
383+
case api.ConflictError:
384+
case api.LimitExceededError:
383385
}
384386

385387
return gwhandlers.UserCallbackPayload{
@@ -415,6 +417,8 @@ func (h *handler) sendResponse(ctx context.Context, userRequest *activeRequest,
415417
h.metrics.requestSuccess.Add(ctx, 1, metric.WithAttributes(
416418
attribute.String("don_id", h.donConfig.DonId),
417419
))
420+
case api.ConflictError:
421+
case api.LimitExceededError:
418422
}
419423

420424
err := userRequest.SendResponse(resp)

integration-tests/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ require (
4848
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260317185256-d5f7db87ae70
4949
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260310183131-8d0f0e383288
5050
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20260310183131-8d0f0e383288
51-
github.com/smartcontractkit/chainlink-common v0.11.0
51+
github.com/smartcontractkit/chainlink-common v0.11.1-0.20260323163826-2c5b95089478
5252
github.com/smartcontractkit/chainlink-common/keystore v1.0.2
5353
github.com/smartcontractkit/chainlink-deployments-framework v0.86.3
5454
github.com/smartcontractkit/chainlink-evm v0.3.4-0.20260320152158-2191d797b5ce
@@ -248,7 +248,7 @@ require (
248248
github.com/felixge/httpsnoop v1.0.4 // indirect
249249
github.com/ferranbt/fastssz v0.1.4 // indirect
250250
github.com/fsnotify/fsnotify v1.9.0 // indirect
251-
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
251+
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
252252
github.com/gabriel-vasile/mimetype v1.4.13 // indirect
253253
github.com/gagliardetto/anchor-go v1.0.0 // indirect
254254
github.com/gagliardetto/binary v0.8.0 // indirect
@@ -513,7 +513,7 @@ require (
513513
github.com/smartcontractkit/chainlink-protos/chainlink-ccv/heartbeat v0.0.0-20260115142640-f6b99095c12e // indirect
514514
github.com/smartcontractkit/chainlink-protos/chainlink-ccv/message-discovery v0.0.0-20251211142334-5c3421fe2c8d // indirect
515515
github.com/smartcontractkit/chainlink-protos/chainlink-ccv/verifier v0.0.0-20251211142334-5c3421fe2c8d // indirect
516-
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260226130359-963f935e0396 // indirect
516+
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260320153346-314ec8dbe5a4 // indirect
517517
github.com/smartcontractkit/chainlink-protos/linking-service/go v0.0.0-20251002192024-d2ad9222409b // indirect
518518
github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260211172625-dff40e83b3c9 // indirect
519519
github.com/smartcontractkit/chainlink-protos/orchestrator v0.10.0 // indirect

integration-tests/go.sum

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration-tests/load/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ require (
2727
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260317185256-d5f7db87ae70
2828
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260310183131-8d0f0e383288
2929
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20260310183131-8d0f0e383288
30-
github.com/smartcontractkit/chainlink-common v0.11.0
30+
github.com/smartcontractkit/chainlink-common v0.11.1-0.20260323163826-2c5b95089478
3131
github.com/smartcontractkit/chainlink-deployments-framework v0.86.3
3232
github.com/smartcontractkit/chainlink-evm v0.3.4-0.20260320152158-2191d797b5ce
3333
github.com/smartcontractkit/chainlink-testing-framework/framework v0.15.3
@@ -209,7 +209,7 @@ require (
209209
github.com/felixge/httpsnoop v1.0.4 // indirect
210210
github.com/ferranbt/fastssz v0.1.4 // indirect
211211
github.com/fsnotify/fsnotify v1.9.0 // indirect
212-
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
212+
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
213213
github.com/gabriel-vasile/mimetype v1.4.13 // indirect
214214
github.com/gagliardetto/anchor-go v1.0.0 // indirect
215215
github.com/gagliardetto/binary v0.8.0 // indirect
@@ -490,7 +490,7 @@ require (
490490
github.com/smartcontractkit/chainlink-protos/chainlink-ccv/heartbeat v0.0.0-20260115142640-f6b99095c12e // indirect
491491
github.com/smartcontractkit/chainlink-protos/chainlink-ccv/message-discovery v0.0.0-20251211142334-5c3421fe2c8d // indirect
492492
github.com/smartcontractkit/chainlink-protos/chainlink-ccv/verifier v0.0.0-20251211142334-5c3421fe2c8d // indirect
493-
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260226130359-963f935e0396 // indirect
493+
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260320153346-314ec8dbe5a4 // indirect
494494
github.com/smartcontractkit/chainlink-protos/job-distributor v0.18.0 // indirect
495495
github.com/smartcontractkit/chainlink-protos/linking-service/go v0.0.0-20251002192024-d2ad9222409b // indirect
496496
github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260211172625-dff40e83b3c9 // indirect

integration-tests/load/go.sum

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)