1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-18 00:20:57 +03:00

fix: remove unused fields and ensure push notifications work in cloned clients

- Remove unused Timestamp and Source fields from PushNotificationInfo
- Add pushProcessor to newConn function to ensure Conn instances have push notifications
- Add push notification methods to Conn type for consistency
- Ensure cloned clients and Conn instances preserve push notification functionality

This fixes issues where:
1. PushNotificationInfo had unused fields causing confusion
2. Conn instances created via client.Conn() lacked push notification support
3. All client types now consistently support push notifications
This commit is contained in:
Nedyalko Dyakov
2025-06-26 21:30:27 +03:00
parent d7fbe18214
commit 1331fb9957
2 changed files with 30 additions and 4 deletions

View File

@ -225,10 +225,8 @@ const (
// PushNotificationInfo contains metadata about a push notification.
type PushNotificationInfo struct {
Command string
Args []interface{}
Timestamp int64
Source string
Command string
Args []interface{}
}
// ParsePushNotificationInfo extracts information from a push notification.