Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulminator committed May 8, 2024
1 parent 80d2f05 commit c5b9f5e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ func (c *Conn) ConnectWithContext(ctx context.Context) (*IdentifyResponse, error
// the timeout used is smallest of dialer.Timeout (config.DialTimeout) or context timeout
conn, err := dialer.DialContext(ctx, "tcp", c.addr)
if err != nil {
fmt.Println("dialer.DialContext error: ", err) // TODO: remove
return nil, err
}
c.conn = conn.(*net.TCPConn)
Expand Down Expand Up @@ -309,7 +308,6 @@ func (c *Conn) WriteCommandWithContext(ctx context.Context, cmd *Command) error
var err error
select {
case <-ctx.Done():
fmt.Println("WriteCommandWithContext ctx.Done(): ", ctx.Err()) // TODO: remove
c.mtx.Unlock()
return ctx.Err()
default:
Expand Down
1 change: 0 additions & 1 deletion producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ func (w *Producer) sendCommandAsync(ctx context.Context, cmd *Command, doneChan
case <-w.exitChan:
return ErrStopped
case <-ctx.Done():
fmt.Println("sendCommandAsync ctx.Done(): ", ctx.Err()) // TODO: remove
return ctx.Err()
}

Expand Down

0 comments on commit c5b9f5e

Please sign in to comment.