From 87d16e644dfcd656fae684ab58c19516a949a738 Mon Sep 17 00:00:00 2001 From: 9iksans Date: Sat, 20 Jul 2024 13:46:57 +0700 Subject: [PATCH] enhancement - change health check write ping --- stash.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stash.go b/stash.go index 5f42d03..ea11715 100644 --- a/stash.go +++ b/stash.go @@ -3,7 +3,6 @@ package stash import ( "bytes" "crypto/tls" - "encoding/base64" "fmt" "log" "net" @@ -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 }