Skip to content

Commit 1a92e19

Browse files
committed
fix(examplegen): declare points in queue history example and regenerate
1 parent c8108b9 commit 1a92e19

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ q, err := redisqueue.New("127.0.0.1:6379")
656656
if err != nil {
657657
return
658658
}
659-
points, err = q.History(context.Background(), "default", queue.QueueHistoryHour)
659+
points, err := q.History(context.Background(), "default", queue.QueueHistoryHour)
660660
_ = err
661661
```
662662

admin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ func (r *Queue) ClearQueue(ctx context.Context, queueName string) error {
439439
// if err != nil {
440440
// return
441441
// }
442-
// points, err = q.History(context.Background(), "default", queue.QueueHistoryHour)
442+
// points, err := q.History(context.Background(), "default", queue.QueueHistoryHour)
443443
// _ = points
444444
// _ = err
445445
func (r *Queue) History(ctx context.Context, queueName string, window QueueHistoryWindow) ([]QueueHistoryPoint, error) {

examples/queue-history/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func main() {
1919
if err != nil {
2020
return
2121
}
22-
points, err = q.History(context.Background(), "default", queue.QueueHistoryHour)
22+
points, err := q.History(context.Background(), "default", queue.QueueHistoryHour)
2323
_ = points
2424
_ = err
2525
}

0 commit comments

Comments
 (0)