diff --git a/pkg/innerring/internal/client/client.go b/pkg/innerring/internal/client/client.go index 2d380324..f011c768 100644 --- a/pkg/innerring/internal/client/client.go +++ b/pkg/innerring/internal/client/client.go @@ -81,14 +81,13 @@ func (x Client) SearchSG(prm SearchSGPrm) (*SearchSGRes, error) { for { n, ok = rdr.Read(buf) - if !ok { - break - } - for i := 0; i < n; i++ { v := buf[i] list = append(list, &v) } + if !ok { + break + } } res, err := rdr.Close()