Skip to content
Snippets Groups Projects
Commit 8acd3a9a authored by Gregory Szorc's avatar Gregory Szorc
Browse files

wireproto: make version 2 @wireprotocommand an independent function

Previously, the code for this decorator was shared between version 1
and version 2 commands. Very few parts of the function were identical.
So I don't think sharing is justified.

wireprotov2server now has its own @wireprotocommand decorator function.
Because the decorator is no longer shared, code for configuring the
transport policy has been removed. i.e. commands must have separate
implementations for each wire protocol version.

Differential Revision: https://phab.mercurial-scm.org/D3395
parent 379d54ea
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment