Skip to content

Commit

Permalink
enhancement - change health check write ping
Browse files Browse the repository at this point in the history
  • Loading branch information
9iksans committed Jul 20, 2024
1 parent 449f1e5 commit 87d16e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stash.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package stash
import (
"bytes"
"crypto/tls"
"encoding/base64"
"fmt"
"log"
"net"
Expand Down Expand Up @@ -185,8 +184,7 @@ func (s *Stash) Health() (err error) {
conn.SetWriteDeadline(deadline)
}

msg, _ := base64.RawStdEncoding.DecodeString("ping")
_, err = conn.Write(msg)
_, err = conn.Write([]byte("ping"))
if err != nil {
return
}
Expand Down

0 comments on commit 87d16e6

Please sign in to comment.