mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 12:24:02 +03:00
Update to go 1.19
This commit is contained in:
@@ -24,25 +24,25 @@ type wrapperRewind struct {
|
||||
}
|
||||
|
||||
func (w *wrapperRewind) Write(p []byte) (int, error) {
|
||||
return w.parent.Write(p) // nolint: wrapcheck
|
||||
return w.parent.Write(p) //nolint: wrapcheck
|
||||
}
|
||||
|
||||
func (w *wrapperRewind) WriteTimeout(p []byte, timeout time.Duration) (int, error) {
|
||||
return w.parent.WriteTimeout(p, timeout) // nolint: wrapcheck
|
||||
return w.parent.WriteTimeout(p, timeout) //nolint: wrapcheck
|
||||
}
|
||||
|
||||
func (w *wrapperRewind) Read(p []byte) (int, error) {
|
||||
w.mutex.Lock()
|
||||
defer w.mutex.Unlock()
|
||||
|
||||
return w.activeReader.Read(p) // nolint: wrapcheck
|
||||
return w.activeReader.Read(p) //nolint: wrapcheck
|
||||
}
|
||||
|
||||
func (w *wrapperRewind) ReadTimeout(p []byte, _ time.Duration) (int, error) {
|
||||
w.mutex.Lock()
|
||||
defer w.mutex.Unlock()
|
||||
|
||||
return w.activeReader.Read(p) // nolint: wrapcheck
|
||||
return w.activeReader.Read(p) //nolint: wrapcheck
|
||||
}
|
||||
|
||||
func (w *wrapperRewind) Conn() net.Conn {
|
||||
@@ -64,7 +64,7 @@ func (w *wrapperRewind) RemoteAddr() *net.TCPAddr {
|
||||
func (w *wrapperRewind) Close() error {
|
||||
w.buf.Reset()
|
||||
|
||||
return w.parent.Close() // nolint: wrapcheck
|
||||
return w.parent.Close() //nolint: wrapcheck
|
||||
}
|
||||
|
||||
func (w *wrapperRewind) Rewind() {
|
||||
|
||||
Reference in New Issue
Block a user