Skip to content

Commit

Permalink
code health: do not pass a schema to init requests
Browse files Browse the repository at this point in the history
Initial requests should not use a schema because it has not been
loaded yet.

Part of #218
  • Loading branch information
oleg-jukovec committed Jan 13, 2023
1 parent c3215e1 commit 6e4da11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ func pack(h *smallWBuf, enc *encoder, reqid uint32,

func (conn *Connection) writeRequest(w *bufio.Writer, req Request) error {
var packet smallWBuf
err := pack(&packet, newEncoder(&packet), 0, req, ignoreStreamId, conn.Schema)
err := pack(&packet, newEncoder(&packet), 0, req, ignoreStreamId, nil)

if err != nil {
return fmt.Errorf("pack error: %w", err)
Expand Down

0 comments on commit 6e4da11

Please sign in to comment.