Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaiba committed Feb 20, 2025
1 parent b63ab7b commit 154900e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/node/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func buildServer(ctx context.Context, d *coreDependencies) *server {
ce := buildConsensusEngine(ctx, d, db, mp, bs, bp)

// Erc20 bridge signer service
erc20RWSignerMgr := buildErc20RWignerMgr(d)
erc20BridgeSignerMgr := buildErc20BridgeSignerMgr(d)

// Node
node := buildNode(d, mp, bs, ce, snapshotStore, db, bp, p2pSvc)
Expand Down Expand Up @@ -158,7 +158,7 @@ func buildServer(ctx context.Context, d *coreDependencies) *server {
jsonRPCAdminServer: jsonRPCAdminServer,
dbCtx: db,
log: d.logger,
erc20RWSigner: erc20RWSignerMgr,
erc20BridgeSigner: erc20BridgeSignerMgr,
}

return s
Expand Down Expand Up @@ -508,7 +508,7 @@ func buildConsensusEngine(_ context.Context, d *coreDependencies, db *pg.DB,
return ce
}

func buildErc20RWignerMgr(d *coreDependencies) *signersvc.ServiceMgr {
func buildErc20BridgeSignerMgr(d *coreDependencies) *signersvc.ServiceMgr {
// create shared state
stateFile := signersvc.StateFilePath(d.rootDir)

Expand Down
6 changes: 3 additions & 3 deletions app/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type server struct {
listeners *listeners.ListenerManager
jsonRPCServer *rpcserver.Server
jsonRPCAdminServer *rpcserver.Server
erc20RWSigner *signersvc.ServiceMgr
erc20BridgeSigner *signersvc.ServiceMgr
}

func runNode(ctx context.Context, rootDir string, cfg *config.Config, autogen bool, dbOwner string) (err error) {
Expand Down Expand Up @@ -262,9 +262,9 @@ func (s *server) Start(ctx context.Context) error {
s.log.Info("listener manager started")

// Start erc20 bridge signer svc
if s.erc20RWSigner != nil {
if s.erc20BridgeSigner != nil {
group.Go(func() error {
return s.erc20RWSigner.Start(groupCtx)
return s.erc20BridgeSigner.Start(groupCtx)
})
}

Expand Down

0 comments on commit 154900e

Please sign in to comment.