remove duplicate code

This commit is contained in:
Joey Hess 2024-07-28 09:35:09 -04:00
parent 0cdd418407
commit 8ec174408e
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -41,11 +41,6 @@ proxyCluster clusteruuid proxydone servermode clientside protoerrhandler = do
getClientProtocolVersion (fromClusterUUID clusteruuid) clientside
withclientversion (protoerrhandler noop)
where
proxymethods = ProxyMethods
{ removedContent = \u k -> logChange k u InfoMissing
, addedContent = \u k -> logChange k u InfoPresent
}
withclientversion (Just (clientmaxversion, othermsg)) = do
-- The protocol versions supported by the nodes are not
-- known at this point, and would be too expensive to
@ -68,7 +63,7 @@ proxyCluster clusteruuid proxydone servermode clientside protoerrhandler = do
concurrencyconfig <- getConcurrencyConfig
proxystate <- liftIO mkProxyState
let proxyparams = ProxyParams
{ proxyMethods = proxymethods
{ proxyMethods = mkProxyMethods
, proxyState = proxystate
, proxyServerMode = servermode
, proxyClientSide = clientside