Skip to content

Commit

Permalink
fix chanrpc example test failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
zsai001 committed Dec 2, 2016
1 parent 863d8ec commit c848e41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chanrpc/chanrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,12 @@ func (s *Server) exec(ci *CallInfo) (err error) {
panic("bug")
}

func (s *Server) Exec(ci *CallInfo) {
func (s *Server) Exec(ci *CallInfo) error{
err := s.exec(ci)
if err != nil {
log.Error("%v", err)
}
return err
}

// goroutine safe
Expand Down

0 comments on commit c848e41

Please sign in to comment.