Skip to content

Commit

Permalink
fix - remove close connection on error connection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
9iksans committed Jul 22, 2024
1 parent 66887e1 commit c41040c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion stash.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ func SetProtocolConn(protocol string) Option {
func (s *Stash) dial(address string) error {
conn, err := s.o.dialer.Dial(s.o.protocol, address)
if err != nil {
conn.Close()
return err
}

Expand Down

0 comments on commit c41040c

Please sign in to comment.