Skip to content

Conversation

gpassini
Copy link
Contributor

Currently, the redigostore.New function takes a RedigoPool interface, allowing consumers to use pools from https://github.com/mna/redisc, for example.

This might be a simple overlook, but the redigostore.NewCtx does not accept that interface, requiring the concrete *redis.Pool type.

There's a simple workaround: using the New function (without context), then wrapping it with throttled.WrapStoreWithContext, but it would be nicer to make NewCtx accept the interface directly.

@brandur
Copy link
Member

brandur commented Jan 23, 2025

Yep, WFM. The input argument should match the New function anyway. Thanks.

@brandur brandur merged commit c999f49 into throttled:master Jan 23, 2025
3 checks passed
@brandur
Copy link
Member

brandur commented Jan 23, 2025

Published https://github.com/throttled/throttled/releases/tag/v2.13.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants