ignore context paramenter in Subscribe receiver function in PubSub struct

This commit is contained in:
Kelvin Mwinuka
2024-03-25 09:30:37 +08:00
parent 79d52305db
commit 0bfb9e4cca
2 changed files with 2765 additions and 2765 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -38,7 +38,7 @@ func NewPubSub() *PubSub {
} }
} }
func (ps *PubSub) Subscribe(ctx context.Context, conn *net.Conn, channels []string, withPattern bool) { func (ps *PubSub) Subscribe(_ context.Context, conn *net.Conn, channels []string, withPattern bool) {
ps.channelsRWMut.Lock() ps.channelsRWMut.Lock()
defer ps.channelsRWMut.Unlock() defer ps.channelsRWMut.Unlock()