Skip to content

Commit 6e4da11

Browse files
committed
code health: do not pass a schema to init requests
Initial requests should not use a schema because it has not been loaded yet. Part of #218
1 parent c3215e1 commit 6e4da11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connection.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ func pack(h *smallWBuf, enc *encoder, reqid uint32,
702702

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

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

0 commit comments

Comments
 (0)