Skip to content

Commit

Permalink
Add missing PROFILING CPP pragma
Browse files Browse the repository at this point in the history
GitOrigin-RevId: b50acc1
  • Loading branch information
jberryman authored and hasura-bot committed Dec 1, 2020
1 parent d4d5c53 commit bcf251a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src-lib/Hasura/GraphQL/Transport/WebSocket/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ createServerApp (WSServer logger@(L.Logger writeLog) serverStatus) wsHandlers !i
-- Requires a fork of 'wai-websockets' and 'websockets', it looks like.
-- Adding `package` stanzas with -Xstrict -XStrictData for those two packages
-- helped, cutting the number of thunks approximately in half.
# ifndef PROFILING
liftIO $ $assertNFHere wsConn -- so we don't write thunks to mutable vars
# endif

let whenAcceptingInsertConn = liftIO $ STM.atomically $ do
status <- STM.readTVar serverStatus
Expand Down

0 comments on commit bcf251a

Please sign in to comment.