fix: golangci

This commit is contained in:
zarazaex69
2026-05-07 16:36:30 +03:00
parent 0f617c6e0d
commit 87a546605c
37 changed files with 107 additions and 57 deletions
+7 -6
View File
@@ -1,3 +1,4 @@
//nolint:all // Test file keeps scenario setup inline.
package muxconn
import (
@@ -20,12 +21,12 @@ type stubLink struct {
canSendFn func() bool
}
func (s *stubLink) Connect(context.Context) error { return nil }
func (s *stubLink) Close() error { return nil }
func (s *stubLink) SetReconnectCallback(func()) {}
func (s *stubLink) SetShouldReconnect(func() bool) {}
func (s *stubLink) SetEndedCallback(func(string)) {}
func (s *stubLink) WatchConnection(context.Context) {}
func (s *stubLink) Connect(context.Context) error { return nil }
func (s *stubLink) Close() error { return nil }
func (s *stubLink) SetReconnectCallback(func()) {}
func (s *stubLink) SetShouldReconnect(func() bool) {}
func (s *stubLink) SetEndedCallback(func(string)) {}
func (s *stubLink) WatchConnection(context.Context) {}
func (s *stubLink) Send(data []byte) error {
s.mu.Lock()
defer s.mu.Unlock()