Skip to content

Improve consistency of context arguments in API handlers

João Pereira requested to merge improve-consistency into master

In the API handlers, sometimes we're passing the handler struct around as a context.Context argument. Although handlers embedded a context, it's unnecessary to pass the full handler struct around. Instead, we can just pass <handler>.Context to improve consistency and readability.

Edited by João Pereira

Merge request reports