Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,12 @@ type Storage interface {
}

type Communication interface {
// Send sends a message to the given destination node
Send(msg *Message, destination NodeID)

// Nodes returns all nodes that participate in the epoch.
Nodes() []NodeID

// Send sends a message to the given destination node
Send(msg *Message, destination NodeID)

// Broadcast broadcasts the given message to all nodes.
// Does not send it to yourself.
Broadcast(msg *Message)
Expand Down
Loading
Loading