Skip to content

Commit

Permalink
broker: check err
Browse files Browse the repository at this point in the history
  • Loading branch information
travisjeffery committed Dec 6, 2016
1 parent 222cc90 commit f742237
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion broker/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ func (s *Broker) Apply(l *raft.Log) interface{} {
if err := json.Unmarshal(b, p); err != nil {
panic(errors.Wrap(err, "json unmarshal failed"))
}
s.deleteTopic(p)
if err := s.deleteTopic(p); err != nil {
panic(errors.Wrap(err, "topic delete failed"))
}
}
return nil
}
Expand Down

0 comments on commit f742237

Please sign in to comment.