mapper: remove Batcher interface, rename to Batcher struct
Remove the Batcher interface since there is only one implementation. Rename LockFreeBatcher to Batcher and merge batcher_lockfree.go into batcher.go. Drop type assertions in debug.go now that mapBatcher is a concrete *mapper.Batcher pointer.
This commit is contained in:
parent
9b24a39943
commit
2058343ad6
8 changed files with 1064 additions and 1169 deletions
|
|
@ -44,7 +44,7 @@ type mapper struct {
|
|||
// Configuration
|
||||
state *state.State
|
||||
cfg *types.Config
|
||||
batcher Batcher
|
||||
batcher *Batcher
|
||||
|
||||
created time.Time
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue