fix recording present on the proxy when proxying DATA-PRESENT
Apparently the protoerrhandler parameter never runs. Also the const typo prevented the type checker from complaining that relayPUTRecord was being called with 1 less parameter than needed. So move the relayPUTRecord out of it.
This commit is contained in:
parent
ccbc5189b5
commit
54dc1d6f6e
1 changed files with 3 additions and 2 deletions
|
@ -688,8 +688,9 @@ proxyRequest proxydone proxyparams requestcomplete requestmessage protoerrhandle
|
||||||
handlePutMulti_DATA_PRESENT _ _ _ = protoerr
|
handlePutMulti_DATA_PRESENT _ _ _ = protoerr
|
||||||
|
|
||||||
handlePut_DATA_PRESENT remoteside k DATA_PRESENT =
|
handlePut_DATA_PRESENT remoteside k DATA_PRESENT =
|
||||||
getresponse (runRemoteSide remoteside) DATA_PRESENT $ \resp ->
|
getresponse (runRemoteSide remoteside) DATA_PRESENT $ \resp -> do
|
||||||
protoerrhandler (const (relayPUTRecord k remoteside) >> requestcomplete) $
|
void $ relayPUTRecord k remoteside resp
|
||||||
|
protoerrhandler requestcomplete $
|
||||||
client $ net $ sendMessage resp
|
client $ net $ sendMessage resp
|
||||||
handlePut_DATA_PRESENT _ _ _ = protoerr
|
handlePut_DATA_PRESENT _ _ _ = protoerr
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue