wp
This commit is contained in:
@@ -54,6 +54,7 @@ func (s *Connection) mustSuccess(reader *bufreader.BufferedReader) (err error) {
|
||||
}
|
||||
switch code {
|
||||
case proto.RespSuccess:
|
||||
fmt.Println("SUCCESS")
|
||||
return nil // ok
|
||||
case proto.RespError:
|
||||
return s.onError()
|
||||
@@ -70,6 +71,7 @@ func (s *Connection) AddMetric(req proto.AddMetricReq) (err error) {
|
||||
req.FracDigits,
|
||||
}
|
||||
bin.PutUint32(arr[1:], req.MetricID)
|
||||
fmt.Println("arr", arr)
|
||||
// req
|
||||
if _, err = s.conn.Write(arr); err != nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user