From 97dc24b6fe59e43ccb31a353f94dee219012a146 Mon Sep 17 00:00:00 2001 From: Ryan Smith Date: Wed, 14 Feb 2024 11:10:47 -0800 Subject: [PATCH] shovel/task: refactor. remove unused interface method --- dig/dig.go | 2 -- shovel/task.go | 1 - shovel/task_test.go | 4 ---- 3 files changed, 7 deletions(-) diff --git a/dig/dig.go b/dig/dig.go index b6f153e3..cd1e6d85 100644 --- a/dig/dig.go +++ b/dig/dig.go @@ -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 diff --git a/shovel/task.go b/shovel/task.go index 0e167a7c..3dde49c3 100644 --- a/shovel/task.go +++ b/shovel/task.go @@ -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 } diff --git a/shovel/task_test.go b/shovel/task_test.go index 2eb8e3f5..635cc6fb 100644 --- a/shovel/task_test.go +++ b/shovel/task_test.go @@ -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} }