service#Start, service#Stop signatures were changed

See https://github.com/tendermint/tmlibs/issues/45
This commit is contained in:
Anton Kaliaev
2017-11-06 13:20:39 -05:00
parent a393cf4109
commit 69b5da766c
38 changed files with 99 additions and 104 deletions

View File

@ -179,7 +179,7 @@ func (sw *Switch) OnStart() error {
}
// Start reactors
for _, reactor := range sw.reactors {
_, err := reactor.Start()
err := reactor.Start()
if err != nil {
return err
}
@ -289,7 +289,7 @@ func (sw *Switch) SetPubKeyFilter(f func(crypto.PubKeyEd25519) error) {
}
func (sw *Switch) startInitPeer(peer *peer) {
_, err := peer.Start() // spawn send/recv routines
err := peer.Start() // spawn send/recv routines
if err != nil {
// Should never happen
sw.Logger.Error("Error starting peer", "peer", peer, "err", err)
@ -547,7 +547,7 @@ func Connect2Switches(switches []*Switch, i, j int) {
// It returns the first encountered error.
func StartSwitches(switches []*Switch) error {
for _, s := range switches {
_, err := s.Start() // start switch and reactors
err := s.Start() // start switch and reactors
if err != nil {
return err
}