clean up protocol version for proxying
authorJoey Hess <joeyh@joeyh.name>
Fri, 26 Jul 2024 17:39:43 +0000 (13:39 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 26 Jul 2024 17:49:05 +0000 (13:49 -0400)
commitad025b8e5eaec681095fb052cacbcb6d8f850370
treef413b85035db8326569a8558333c8c428ae5a80a
parentde7730f51f36092989b1eb131a92001533c8df9b
clean up protocol version for proxying

The proxy always checks the protocol version of a remote before talking
to it in a version-specific way, so the protocol version in the ProxyParams
is the client's protocol version. The remote will always be at the same or
an older protocol version than the client.

Note that in relayDATAFinish, when the client is at protocol version 0,
the remote must thus be as well, and that's why its version is not
checked in the case for that.

With that clarified, it's evident that, in P2P.Http.State, there's no
need to look at the proxied remote's protocol version at all.
Annex/Cluster.hs
Command/P2PStdIO.hs
P2P/Http/State.hs
P2P/Proxy.hs
doc/todo/git-annex_proxies.mdwn