Skip to content

Commit

Permalink
Pass batch by reference to processors
Browse files Browse the repository at this point in the history
  • Loading branch information
gdiazlo committed Mar 19, 2019
1 parent b833486 commit 8677dbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gossip/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import (
)

type Processor interface {
Process(protocol.BatchSnapshots)
Process(*protocol.BatchSnapshots)
}

type FakeProcessor struct {
}

func (d FakeProcessor) Process(b protocol.BatchSnapshots) {
func (d FakeProcessor) Process(b *protocol.BatchSnapshots) {
}

type DummyProcessor struct {
Expand Down

0 comments on commit 8677dbf

Please sign in to comment.