-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return (response, error) #2 #1710
Conversation
defer trace.Epoch("read-write path")() | ||
reply, err = r.addWriteCmd(ctx, args, nil) | ||
} else { | ||
panic("incomplete match") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a strange error message. How about panic(fmt.Sprintf("don't know how to handle command %T", args))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
LGTM |
if log.V(1) { | ||
log.Infoc(ctx, "found response cache entry for %+v", args.Header().CmdID) | ||
} | ||
// TODO(tamird): move this into the response cache itself |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
itself.
More work toward #1400.