Skip to content

Commit

Permalink
Remove Init handler from bcb
Browse files Browse the repository at this point in the history
Handling the Init event is optional for dsl modules since #166.
  • Loading branch information
xosmig committed Aug 4, 2022
1 parent 50cd7f0 commit d043606
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/bcb/bcbmodule.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ func NewModule(mc *ModuleConfig, params *ModuleParams, nodeID t.NodeID) modules.
echoSigs: make(map[t.NodeID][]byte),
}

dsl.UponInit(m, func() error {
// no initialization required
return nil
})

// upon event <bcb, Broadcast | m> do // only process s
bcbdsl.UponRequest(m, func(data []byte) error {
if nodeID != params.Leader {
Expand Down

0 comments on commit d043606

Please sign in to comment.