named return value for error defer modify.
This commit is contained in:
parent
83d0560d23
commit
c1382ac0b7
@ -167,8 +167,7 @@ func validateSubscriber(sub server.Subscriber) error {
|
||||
}
|
||||
|
||||
func (g *grpcServer) createSubHandler(sb *subscriber, opts server.Options) broker.Handler {
|
||||
return func(p broker.Event) error {
|
||||
var err error
|
||||
return func(p broker.Event) (err error) {
|
||||
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user