Skip to content

Commit

Permalink
_ for unsused context parameters in pubsub module
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinmwinuka committed Apr 18, 2024
1 parent ddd09ee commit 2dc5bb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pubsub/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (ps *PubSub) Subscribe(_ context.Context, conn *net.Conn, channels []string
}
}

func (ps *PubSub) Unsubscribe(ctx context.Context, conn *net.Conn, channels []string, withPattern bool) []byte {
func (ps *PubSub) Unsubscribe(_ context.Context, conn *net.Conn, channels []string, withPattern bool) []byte {
ps.channelsRWMut.RLock()
defer ps.channelsRWMut.RUnlock()

Expand Down Expand Up @@ -176,7 +176,7 @@ func (ps *PubSub) Unsubscribe(ctx context.Context, conn *net.Conn, channels []st
return []byte(res)
}

func (ps *PubSub) Publish(ctx context.Context, message string, channelName string) {
func (ps *PubSub) Publish(_ context.Context, message string, channelName string) {
ps.channelsRWMut.RLock()
defer ps.channelsRWMut.RUnlock()

Expand Down

0 comments on commit 2dc5bb9

Please sign in to comment.