Removed discord label from README.md. Updated SUBSCRIBE command handler to send psubscribe event to connection when subscribing to a pattern.

This commit is contained in:
Kelvin Mwinuka
2024-03-20 00:18:38 +08:00
parent 59a03aec2c
commit 28f659033e
4 changed files with 13 additions and 10 deletions

View File

@@ -335,7 +335,7 @@ func Test_HandlePublish(t *testing.T) {
}()
// Verify all the responses for each pattern subscription
for i := 0; i < len(patterns); i++ {
verifyEvent(c, r, []string{"subscribe", patterns[i], fmt.Sprintf("%d", i+1)})
verifyEvent(c, r, []string{"psubscribe", patterns[i], fmt.Sprintf("%d", i+1)})
}
}