Skip to content

refactor: collapse duplicated canonicalize/non-canonicalize branches in TgsExchange::begin() #21

@coderabbitai

Description

@coderabbitai

Summary

TgsExchange::begin() (src/protocol/tgs_exchange.rs, lines 222–250) contains duplicated logic across the canonicalize and non-canonicalize branches. These should be collapsed to reduce repetition and improve maintainability.

Suggested Change

Extract shared logic into a helper or unify the two branches so that the canonicalize flag only gates the minimal differing behaviour.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions