Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose context to middleware #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

nyergler
Copy link

@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.

2 participants