From 30ddb8de1ca12e4dc31db2a82e36f7429ee2d7c6 Mon Sep 17 00:00:00 2001
From: 龙赣华 <slongertian@gmail.com>
Date: 星期六, 01 六月 2019 17:50:03 +0800
Subject: [PATCH] modify string to []byte

---
 client.go |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/client.go b/client.go
index 436d7e7..b70d4e2 100644
--- a/client.go
+++ b/client.go
@@ -102,14 +102,12 @@
 
 func (d *DiscoveryClient) run() {
 	var err error
-	var surveyMsg []byte
 	for {
-		surveyMsg, err = d.sock.Recv()
+		_, err = d.sock.Recv()
 
 		if err != nil {
 			log.Println("DiscoveryClient: Cannot receive the SURVEY", err.Error())
 		} else {
-			log.Printf("client:%s received surveyor msg=%s ",d.service,string(surveyMsg))
 			select {
 			case <-d.ctx.Done():
 				return
@@ -118,8 +116,6 @@
 				err = d.sock.Send([]byte(d.service))
 				if err != nil {
 					log.Println("DiscoveryClient: Cannot send the SURVEY response", err.Error())
-				}else {
-					log.Printf("client:%s sent response i'm online",d.service)
 				}
 			}
 		}

--
Gitblit v1.8.0