Skip to content

remote: simplified Store interface; renamed Handler to WriteHandler#1855

Merged
bwplotka merged 1 commit into
mainfrom
prwclient-fixes
Aug 19, 2025
Merged

remote: simplified Store interface; renamed Handler to WriteHandler#1855
bwplotka merged 1 commit into
mainfrom
prwclient-fixes

Conversation

@bwplotka

@bwplotka bwplotka commented Aug 19, 2025

Copy link
Copy Markdown
Member
  • Re store: We don't need to pass context - you have it in http.Request.Context()
  • Re rename: Technically we have API and Handler is only for remote write, not read, thus making space for "read" one day.

I also:

  • touched write response: I made read flow private, otherwise it's confusing how to use this structure from outside.
  • renamed snappy decoder to SnappyDecodeMiddleware (tighter name)

@saswatamcode saswatamcode left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

…encapsulated write response

* Re store: We don't need to pass context - you have it in
http.Request.Context()
* Re rename: Technically we have API and Handler is only for remote
write, not read, thus making space for "read" one day.
* Re write response: I made read flow private, otherwise it's confusing
how to use this structure from outside.

Signed-off-by: bwplotka <bwplotka@gmail.com>
@bwplotka bwplotka enabled auto-merge (squash) August 19, 2025 12:52
@bwplotka bwplotka merged commit e77101d into main Aug 19, 2025
9 checks passed
@bwplotka bwplotka deleted the prwclient-fixes branch August 19, 2025 12:52
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