Skip to content

Commit

Permalink
Merge pull request #829 from markgao/server-error-overwritten
Browse files Browse the repository at this point in the history
fix: server error overwritten
  • Loading branch information
smallnest authored Nov 24, 2023
2 parents 5e86657 + b453740 commit 0e143cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func (p *pluginContainer) DoPreCall(ctx context.Context, serviceName, methodName

// DoPostCall invokes PostCallPlugin plugin.
func (p *pluginContainer) DoPostCall(ctx context.Context, serviceName, methodName string, args, reply interface{}, err error) (interface{}, error) {
var e error
e := err
for i := range p.plugins {
if plugin, ok := p.plugins[i].(PostCallPlugin); ok {
reply, e = plugin.PostCall(ctx, serviceName, methodName, args, reply, err)
Expand Down

0 comments on commit 0e143cf

Please sign in to comment.