|
|
@@ -42,7 +42,7 @@ func (s *syncPair) Write(p []byte) (int, error) {
|
|
42
|
42
|
s.mutex.Lock()
|
|
43
|
43
|
defer s.mutex.Unlock()
|
|
44
|
44
|
|
|
45
|
|
- n, err := s.writer.Write(p) // nolint: wrapcheck
|
|
|
45
|
+ n, err := s.writer.Write(p)
|
|
46
|
46
|
|
|
47
|
47
|
// optimization for a case when we have a small package and want to avoid a
|
|
48
|
48
|
// delay in readTimeout. In that case, we assume that peer has finished to
|
|
|
@@ -52,7 +52,7 @@ func (s *syncPair) Write(p []byte) (int, error) {
|
|
52
|
52
|
err = s.writer.Flush()
|
|
53
|
53
|
}
|
|
54
|
54
|
|
|
55
|
|
- return n, err
|
|
|
55
|
+ return n, err // nolint: wrapcheck
|
|
56
|
56
|
}
|
|
57
|
57
|
|
|
58
|
58
|
func (s *syncPair) Flush() error {
|