mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-11-23 11:39:43 +01:00
Apply same pluck permission region fix to unregistered serverRequestCall
This commit is contained in:
parent
ca1d5a7205
commit
4ae3936ac9
1 changed files with 31 additions and 30 deletions
|
@ -36,7 +36,8 @@ serverRequestCall server cq@CompletionQueue{..} =
|
||||||
withPermission Push cq $
|
withPermission Push cq $
|
||||||
bracket malloc free $ \callPtr ->
|
bracket malloc free $ \callPtr ->
|
||||||
C.withMetadataArrayPtr $ \metadataArrayPtr ->
|
C.withMetadataArrayPtr $ \metadataArrayPtr ->
|
||||||
C.withCallDetails $ \callDetails -> do
|
C.withCallDetails $ \callDetails ->
|
||||||
|
withPermission Pluck cq $ do
|
||||||
grpcDebug $ "serverRequestCall: callPtr is " ++ show callPtr
|
grpcDebug $ "serverRequestCall: callPtr is " ++ show callPtr
|
||||||
metadataArray <- peek metadataArrayPtr
|
metadataArray <- peek metadataArrayPtr
|
||||||
tag <- newTag cq
|
tag <- newTag cq
|
||||||
|
|
Loading…
Reference in a new issue