Skip to content

Commit

Permalink
fix: websocket free result
Browse files Browse the repository at this point in the history
  • Loading branch information
huskar-t committed Apr 22, 2024
1 parent 20babab commit 50442b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions taosWS/rows.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,6 @@ func (rs *rows) fetchBlock() error {
}

func (rs *rows) freeResult() error {
if rs.isStmt {
return nil
}
tc := rs.conn
reqID := tc.generateReqID()
req := &WSFreeResultReq{
Expand All @@ -181,5 +178,6 @@ func (rs *rows) freeResult() error {
if err != nil {
return err
}
err = tc.writeText(rs.buf.Bytes())
return nil
}

0 comments on commit 50442b7

Please sign in to comment.