Skip to content

Commit

Permalink
fix(stf): fix router.InvokeTyped reflection usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed Jun 20, 2024
1 parent 11b8f11 commit 5b95ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/v2/stf/stf_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (r Router) InvokeTyped(ctx context.Context, req, resp protoiface.MessageV1)
}

func merge(src, dst protoiface.MessageV1) {
reflect.Indirect(reflect.ValueOf(dst)).Set(reflect.Indirect(reflect.ValueOf(src)))
reflect.Indirect(reflect.ValueOf(src)).Set(reflect.Indirect(reflect.ValueOf(dst)))
}

func (r Router) InvokeUntyped(ctx context.Context, req protoiface.MessageV1) (res protoiface.MessageV1, err error) {
Expand Down

0 comments on commit 5b95ced

Please sign in to comment.