Skip to content

Commit 3526429

Browse files
committed
update readme
1 parent 9f0216d commit 3526429

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

hitless/README.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,6 @@ Config: &hitless.Config{
4949
- **Auto-calculated**: `10 × MaxWorkers`, capped by pool size
5050
- **Always capped**: Queue size never exceeds pool size
5151

52-
## Cluster Support
53-
54-
```go
55-
opt := &redis.ClusterOptions{
56-
Addrs: []string{"localhost:7000", "localhost:7001"},
57-
Protocol: 3,
58-
HitlessUpgrades: &redis.HitlessUpgradeConfig{
59-
Mode: hitless.MaintNotificationsEnabled,
60-
},
61-
}
62-
client := redis.NewClusterClient(opt)
63-
```
64-
6552
## Metrics Hook Example
6653

6754
A metrics collection hook is available in `example_hooks.go` that demonstrates how to monitor hitless upgrade operations:
@@ -83,4 +70,3 @@ The metrics hook tracks:
8370
## Requirements
8471

8572
- **RESP3 Protocol**: Required for push notifications
86-
- **Redis 7.0+**: For maintenance notification support

hitless/example_hooks.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
type contextKey string
1010

1111
const (
12-
startTimeKey contextKey = "start_time"
12+
startTimeKey contextKey = "notif_hitless_start_time"
1313
)
1414

1515
// MetricsHook collects metrics about notification processing.
@@ -60,4 +60,4 @@ func (mh *MetricsHook) GetMetrics() map[string]interface{} {
6060
"processing_times": mh.ProcessingTimes,
6161
"error_counts": mh.ErrorCounts,
6262
}
63-
}
63+
}

0 commit comments

Comments
 (0)