Skip to content

Commit

Permalink
fix: update gitignore and fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal committed Jan 29, 2025
1 parent d190b67 commit 4c5787a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*.dll
*.so
*.dylib
*.db

# Test binary, built with `go test -c`
*.test
Expand Down
Binary file removed tracker/eventStore.db
Binary file not shown.
2 changes: 2 additions & 0 deletions tracker/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func NewEventTracker(config *EventTrackerConfig, store eventStore.EventTrackerSt
}

updateLastProcessedBlock := false

if lastProcessedBlock < startBlockFromGenesis {
// if we don't have last processed block, or it is less than startBlockFromGenesis,
// we will start from startBlockFromGenesis
Expand Down Expand Up @@ -229,6 +230,7 @@ func (e *EventTracker) Start() error {
select {
case <-ctx.Done():
e.config.Logger.Info("Event tracker stopped")

return nil
default:
}
Expand Down
1 change: 1 addition & 0 deletions tracker/tracker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ func TestNewEventTracker(t *testing.T) {
cfg := &EventTrackerConfig{
Logger: hclog.NewNullLogger(),
}

return cfg, nil, nil, nil
},
startBlockFromGenesis: 0,
Expand Down

0 comments on commit 4c5787a

Please sign in to comment.