1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

fix(push): address comments

This commit is contained in:
Nedyalko Dyakov
2025-07-16 18:25:22 +03:00
parent 1d204c2fe7
commit be3a6c6216
3 changed files with 3 additions and 17 deletions

View File

@ -140,18 +140,3 @@ func IsVoidProcessorError(err error) bool {
}
return false
}
// extractNotificationName attempts to extract the notification name from error messages
func extractNotificationName(err error) string {
if handlerErr, ok := err.(*HandlerError); ok {
if handlerErr.PushNotificationName != "" {
return handlerErr.PushNotificationName
}
}
if procErr, ok := err.(*ProcessorError); ok {
if procErr.PushNotificationName != "" {
return procErr.PushNotificationName
}
}
return "unknown"
}