Skip to content

Commit cde207f

Browse files
committed
format
1 parent 38bfe90 commit cde207f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

handler/logFilter.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package handler
22

33
import (
44
"context"
5-
"github.com/spf13/cast"
65
"math/big"
76
"strings"
87

8+
"github.com/spf13/cast"
9+
910
"github.com/ethereum/go-ethereum"
1011
"github.com/ethereum/go-ethereum/common"
1112
"github.com/ethereum/go-ethereum/core/types"
@@ -46,7 +47,7 @@ func LogFilter(ctx *svc.ServiceContext, block schema.SyncBlock, addresses []comm
4647
return LogsToEvents(ctx, logs, block.ID)
4748
}
4849

49-
func LogsToEvents(ctx *svc.ServiceContext, logs []types.Log, syncBlockId int64) ([]*schema.SyncEvent, error) {
50+
func LogsToEvents(ctx *svc.ServiceContext, logs []types.Log, syncBlockID int64) ([]*schema.SyncEvent, error) {
5051
var events []*schema.SyncEvent
5152
blockTimes := make(map[int64]int64)
5253
sendMessageEvent := &event.SendMessage{}
@@ -78,7 +79,7 @@ func LogsToEvents(ctx *svc.ServiceContext, logs []types.Log, syncBlockId int64)
7879
payloadMsgBytes := payloadBytes(&vlog)
7980
evt := &schema.SyncEvent{
8081
Blockchain: ctx.Config.Blockchain,
81-
SyncBlockID: syncBlockId,
82+
SyncBlockID: syncBlockID,
8283
BlockTime: blockTime,
8384
BlockNumber: cast.ToInt64(vlog.BlockNumber),
8485
BlockHash: vlog.BlockHash.Hex(),

handler/syncBlock.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ func SyncBlock(ctx *svc.ServiceContext) {
7777

7878
ctx.SyncedBlockNumber = block.Number()
7979
ctx.SyncedBlockHash = common.HexToHash(block.Hash())
80-
8180
}
8281
}
8382

0 commit comments

Comments
 (0)