Skip to content

Commit dd8a4dc

Browse files
update tests
1 parent c91b67e commit dd8a4dc

File tree

10 files changed

+621
-662
lines changed

10 files changed

+621
-662
lines changed

bootstrap/bootstrap.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,6 @@ func NewEVMGatewayNodeBuilder(
203203
func (fnb *EVMGatewayNodeBuilder) Initialize() error {
204204
fnb.PrintBuildDetails()
205205

206-
fnb.EnqueueMetricsServerInit()
207-
208206
return nil
209207
}
210208

@@ -444,13 +442,6 @@ func (fnb *EVMGatewayNodeBuilder) ShutdownFunc(fn func() error) *EVMGatewayNodeB
444442
return fnb
445443
}
446444

447-
func (fnb *EVMGatewayNodeBuilder) EnqueueMetricsServerInit() {
448-
fnb.Component("Metrics server", func(config config.Config) (module.ReadyDoneAware, error) {
449-
server := metrics.NewServer(fnb.Logger, uint(config.MetricsPort))
450-
return server, nil
451-
})
452-
}
453-
454445
func (fnb *EVMGatewayNodeBuilder) initMetrics() error {
455446
fnb.Metrics = metrics2.NewCollector(fnb.Logger)
456447
return nil

cmd/run/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var Cmd = &cobra.Command{
4949
if err != nil {
5050
builder.Logger.Fatal().Err(err).Send()
5151
}
52-
node.Run()
52+
node.Run(command.Context())
5353
return nil
5454
},
5555
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/hashicorp/go-multierror v1.1.1
99
github.com/onflow/atree v0.8.0
1010
github.com/onflow/cadence v1.2.2
11-
github.com/onflow/flow-go v0.38.0-preview.0.4.0.20241211211009-759daa544649
11+
github.com/onflow/flow-go v0.38.0-preview.0.4.0.20241213150609-85fd812a7e49
1212
github.com/onflow/flow-go-sdk v1.2.3
1313
github.com/onflow/go-ethereum v1.14.7
1414
github.com/prometheus/client_golang v1.18.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,8 +743,8 @@ github.com/onflow/flow-ft/lib/go/contracts v1.0.1 h1:Ts5ob+CoCY2EjEd0W6vdLJ7hLL3
743743
github.com/onflow/flow-ft/lib/go/contracts v1.0.1/go.mod h1:PwsL8fC81cjnUnTfmyL/HOIyHnyaw/JA474Wfj2tl6A=
744744
github.com/onflow/flow-ft/lib/go/templates v1.0.1 h1:FDYKAiGowABtoMNusLuRCILIZDtVqJ/5tYI4VkF5zfM=
745745
github.com/onflow/flow-ft/lib/go/templates v1.0.1/go.mod h1:uQ8XFqmMK2jxyBSVrmyuwdWjTEb+6zGjRYotfDJ5pAE=
746-
github.com/onflow/flow-go v0.38.0-preview.0.4.0.20241211211009-759daa544649 h1:9JCb0qdirFgkTOQ+iKrnX+3Q5Xh9/hFCP9yM7Ky/QKA=
747-
github.com/onflow/flow-go v0.38.0-preview.0.4.0.20241211211009-759daa544649/go.mod h1:c4ubAQ2WIMYY/TOaBvbajROEFWv2HwhKeGOsEdLPIM0=
746+
github.com/onflow/flow-go v0.38.0-preview.0.4.0.20241213150609-85fd812a7e49 h1:kcAoHB/uEGP3wTJcv2aVtCHSgwY0bdn8qjw7GvvHfM8=
747+
github.com/onflow/flow-go v0.38.0-preview.0.4.0.20241213150609-85fd812a7e49/go.mod h1:c4ubAQ2WIMYY/TOaBvbajROEFWv2HwhKeGOsEdLPIM0=
748748
github.com/onflow/flow-go-sdk v1.2.3 h1:jb+0dIXBO12Zt8x3c2xDXYPv6k3sRTUvhe59M+EcXTI=
749749
github.com/onflow/flow-go-sdk v1.2.3/go.mod h1:jMaffBTlAIdutx+pBhRIigLZFIBYSDDST0Uax1rW2qo=
750750
github.com/onflow/flow-nft/lib/go/contracts v1.2.2 h1:XFERNVUDGbZ4ViZjt7P1cGD80mO1PzUJYPfdhXFsGbQ=

services/ingestion/engine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func (e *Engine) run(ctx irrecoverable.SignalerContext, ready component.ReadyFun
135135
err := e.processEvents(events.Events)
136136
if err != nil {
137137
e.log.Error().Err(err).Msg("failed to process EVM events")
138-
return
138+
ctx.Throw(err)
139139
}
140140
}
141141
}

0 commit comments

Comments
 (0)