Skip to content

Commit

Permalink
Minor fix with context (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina authored Nov 9, 2023
1 parent 73b9c8e commit 28e74cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,8 @@ func createAfterProxyFinalizer(service *ProxyService, config config.Config) http

var blockNumber *int64
// TODO: Redundant ExtractBlockNumberFromEVMRPCRequest call here if request is cached
rawBlockNumber, err := decodedRequestBody.ExtractBlockNumberFromEVMRPCRequest(r.Context(), service.evmClient)
// using background context so method won't be terminated when request finishes
rawBlockNumber, err := decodedRequestBody.ExtractBlockNumberFromEVMRPCRequest(context.Background(), service.evmClient)

if err != nil {
service.ServiceLogger.
Expand Down

0 comments on commit 28e74cf

Please sign in to comment.