Skip to main content

Module posting

Module posting 

Source
Expand description

§Submit-post and submit-feedback client-side orchestration

Two async functions that the higher-level client API calls when a user posts or reacts:

  • post_to_location — two-phase commit for a new post against the server(s) responsible for the target bucket. SubmitPostClaimV1 first reserves a slot and returns a commit token (the server has now done its admission-control work); SubmitPostCommitV1 then uploads the full post bytes. Split into two so a big upload can’t be aborted halfway without the server having first agreed it wants the post.
  • post_feedback_to_location — smaller single-phase RPC (SubmitPostFeedbackV1) used for reactions / flags which carry their own PoW but no big payload to reserve against.

Functions§

post_feedback_to_location
post_to_location