remove duplicate code
This commit is contained in:
parent
0cdd418407
commit
8ec174408e
1 changed files with 1 additions and 6 deletions
|
@ -41,11 +41,6 @@ proxyCluster clusteruuid proxydone servermode clientside protoerrhandler = do
|
||||||
getClientProtocolVersion (fromClusterUUID clusteruuid) clientside
|
getClientProtocolVersion (fromClusterUUID clusteruuid) clientside
|
||||||
withclientversion (protoerrhandler noop)
|
withclientversion (protoerrhandler noop)
|
||||||
where
|
where
|
||||||
proxymethods = ProxyMethods
|
|
||||||
{ removedContent = \u k -> logChange k u InfoMissing
|
|
||||||
, addedContent = \u k -> logChange k u InfoPresent
|
|
||||||
}
|
|
||||||
|
|
||||||
withclientversion (Just (clientmaxversion, othermsg)) = do
|
withclientversion (Just (clientmaxversion, othermsg)) = do
|
||||||
-- The protocol versions supported by the nodes are not
|
-- The protocol versions supported by the nodes are not
|
||||||
-- known at this point, and would be too expensive to
|
-- known at this point, and would be too expensive to
|
||||||
|
@ -68,7 +63,7 @@ proxyCluster clusteruuid proxydone servermode clientside protoerrhandler = do
|
||||||
concurrencyconfig <- getConcurrencyConfig
|
concurrencyconfig <- getConcurrencyConfig
|
||||||
proxystate <- liftIO mkProxyState
|
proxystate <- liftIO mkProxyState
|
||||||
let proxyparams = ProxyParams
|
let proxyparams = ProxyParams
|
||||||
{ proxyMethods = proxymethods
|
{ proxyMethods = mkProxyMethods
|
||||||
, proxyState = proxystate
|
, proxyState = proxystate
|
||||||
, proxyServerMode = servermode
|
, proxyServerMode = servermode
|
||||||
, proxyClientSide = clientside
|
, proxyClientSide = clientside
|
||||||
|
|
Loading…
Add table
Reference in a new issue