Skip to content

Commit

Permalink
nitpicks
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Feb 1, 2024
1 parent 60335ab commit 366dc1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions rollup/internal/controller/relayer/l1_relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func NewLayer1Relayer(ctx context.Context, db *gorm.DB, cfg *config.RelayerConfi

switch serviceType {
case ServiceTypeL1GasOracle:
go l1Relayer.handleGasOracleConfirmLoop(ctx)
go l1Relayer.handleL1GasOracleConfirmLoop(ctx)
default:
return nil, fmt.Errorf("invalid service type for l1_relayer: %v", serviceType)
}
Expand Down Expand Up @@ -172,7 +172,7 @@ func (r *Layer1Relayer) handleConfirmation(cfm *sender.Confirmation) {
log.Info("Transaction confirmed in layer2", "confirmation", cfm)
}

func (r *Layer1Relayer) handleGasOracleConfirmLoop(ctx context.Context) {
func (r *Layer1Relayer) handleL1GasOracleConfirmLoop(ctx context.Context) {
for {
select {
case <-ctx.Done():
Expand Down
8 changes: 4 additions & 4 deletions rollup/internal/controller/relayer/l2_relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ func NewLayer2Relayer(ctx context.Context, l2Client *ethclient.Client, db *gorm.

switch serviceType {
case ServiceTypeL2GasOracle:
go layer2Relayer.handleGasOracleConfirmLoop(ctx)
go layer2Relayer.handleL2GasOracleConfirmLoop(ctx)
case ServiceTypeL2RollupRelayer:
go layer2Relayer.handleRollupRelayerConfirmLoop(ctx)
go layer2Relayer.handleL2RollupRelayerConfirmLoop(ctx)
default:
return nil, fmt.Errorf("invalid service type for l2_relayer: %v", serviceType)
}
Expand Down Expand Up @@ -697,7 +697,7 @@ func (r *Layer2Relayer) handleConfirmation(cfm *sender.Confirmation) {
log.Info("Transaction confirmed in layer1", "confirmation", cfm)
}

func (r *Layer2Relayer) handleGasOracleConfirmLoop(ctx context.Context) {
func (r *Layer2Relayer) handleL2GasOracleConfirmLoop(ctx context.Context) {
for {
select {
case <-ctx.Done():
Expand All @@ -708,7 +708,7 @@ func (r *Layer2Relayer) handleGasOracleConfirmLoop(ctx context.Context) {
}
}

func (r *Layer2Relayer) handleRollupRelayerConfirmLoop(ctx context.Context) {
func (r *Layer2Relayer) handleL2RollupRelayerConfirmLoop(ctx context.Context) {
for {
select {
case <-ctx.Done():
Expand Down

0 comments on commit 366dc1d

Please sign in to comment.