fixup lint errors
All checks were successful
pipeline / test (pull_request) Successful in 43s
pipeline / lint (pull_request) Successful in 10m1s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2024-12-06 18:52:37 +03:00
parent 7bda00cd80
commit 2bbbaf8963
23 changed files with 157 additions and 115 deletions

View File

@@ -66,8 +66,13 @@ func (c *dnsConn) RemoteAddr() net.Addr {
}
func (c *dnsConn) SetDeadline(t time.Time) error {
c.SetReadDeadline(t)
c.SetWriteDeadline(t)
var err error
if err = c.SetReadDeadline(t); err != nil {
return err
}
if err = c.SetWriteDeadline(t); err != nil {
return err
}
return nil
}