Skip to content

Commit

Permalink
Fix conversion from interface to descriptor V2 (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsidnev authored Nov 2, 2023
1 parent b0a9097 commit 2a31436
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/client/granularflow2pX.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,8 @@ func (c *protocolConnection) codecsFromIDsV2(
return nil, nil
}

in, err = codecs.BuildEncoderV2(
desc.(*descriptor.V2),
c.protocolVersion,
)
d := desc.(descriptor.V2)
in, err = codecs.BuildEncoderV2(&d, c.protocolVersion)
if err != nil {
return nil, &invalidArgumentError{msg: err.Error()}
}
Expand Down

0 comments on commit 2a31436

Please sign in to comment.