Skip to content

Conversation

sameh-farouk
Copy link
Member

@sameh-farouk sameh-farouk commented Sep 1, 2025

Note: should be merged after https://github.com/threefoldtech/tfgrid-sdk-go/tree/handle-back-pressure

Description

Added Request tags support in a backward-compatible way.

  • Introduced a Tag type for well-known request tags.

  • Added predefined tag TagFailFast to instruct relays to fail immediately if the destination is offline.

  • New helper serializeTags() to normalize and encode tags into a comma-separated string.

  • Added a new SendRequestWithTags method in Peer that allows sending requests with custom tags.

  • Added new CallWithTags / CallWithSessionWithTags methods in RpcClient to allow specifying tags when making RPC calls.

Changes

  • makeEnvelope now accepts a tags parameter and sets Envelope.Tags if provided.

  • SendRequest refactored to delegate to SendRequestWithTags.

  • SendResponse updated to use the new makeEnvelope signature (with tags="").

  • RpcClient.CallWithSession now delegates to CallWithSessionWithTags.

Related Issues

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstring

@sameh-farouk sameh-farouk changed the base branch from development-fix-issue-1390 to handle-back-pressure September 1, 2025 16:26
@sameh-farouk sameh-farouk changed the base branch from handle-back-pressure to development-fix-issue-1390 September 2, 2025 08:04
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.

1 participant