Skip to content

Commit

Permalink
shovel/task: refactor. remove unused interface method
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandotsmith committed Feb 14, 2024
1 parent 6cc7895 commit 97dc24b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions dig/dig.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,6 @@ func (ig Integration) Filter() glf.Filter {
return *glf.New(fields, addrs, [][]string{{eth.EncodeHex(ig.sighash)}})
}

func (ig Integration) Events(context.Context) [][]byte { return [][]byte{} }

func (ig Integration) Delete(ctx context.Context, pg wpg.Conn, n uint64) error {
const q = `
delete from %s
Expand Down
1 change: 0 additions & 1 deletion shovel/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ type Destination interface {
Name() string
Insert(context.Context, *sync.Mutex, wpg.Conn, []eth.Block) (int64, error)
Delete(context.Context, wpg.Conn, uint64) error
Events(context.Context) [][]byte
Filter() glf.Filter
}

Expand Down
4 changes: 0 additions & 4 deletions shovel/task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ func (dest *testDestination) Delete(_ context.Context, pg wpg.Conn, n uint64) er
return nil
}

func (dest *testDestination) Events(_ context.Context) [][]byte {
return nil
}

func (dest *testDestination) Filter() glf.Filter {
return glf.Filter{UseBlocks: true, UseLogs: true}
}
Expand Down

0 comments on commit 97dc24b

Please sign in to comment.