Skip to content

Conversation

@nyergler
Copy link
Member

@nyergler nyergler commented Jul 8, 2021

A recent upstream change bumped Work to go-redis/v8, which uses a
context everywhere. Despite this, the context wasn't available to the
middleware, which meant we couldn't pass execution-specific
information to the actual handler.

This commit effectively moves everything from HandlerFunc to
ContextHandlerFunc, passing the context to the middleware and
underlying operations.


Note that this is a prerequisite for polytomic/app#816.

nyergler added 4 commits March 3, 2021 13:31
This allows Redis to route our execution to the correct node when
running in a Redis Cluster.
A recent upstream change bumped Work to go-redis/v8, which uses a
context everywhere. Despite this, the context wasn't available to the
middleware, which meant we couldn't pass execution-specific
information to the actual handler.

This commit effectively moves everything from HandlerFunc to
ContextHandlerFunc, passing the context to the middleware and
underlying operations.
@nyergler nyergler requested a review from jpalawaga July 8, 2021 22:24
Copy link
Member

@jpalawaga jpalawaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, hah.

@jpalawaga jpalawaga force-pushed the master branch 2 times, most recently from f35f7cc to 414947a Compare November 10, 2022 16:47
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.

3 participants