mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
common: remove unnecessary logs
This commit is contained in:
1 parent
9acaff5b4a
commit
73a778f5e1
3 files changed
+2
-5
No files matched your search
+1
-1
@@ -90,7 +90,7 @@ func (c *Client) Exchange(reqBytes []byte, clientAddr string, preferTCP bool) ([
|
||||
}
|
||||
}
|
||||
|
||||
// add to cache
|
||||
// add to cache only when there's a valid ip address
|
||||
if len(ips) != 0 {
|
||||
c.cache.Put(getKey(resp.Question), respBytes, ttl)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user