Skip to content

Commit 054b26a

Browse files
committed
Merge branch 'issue-1182-cache-update' of github.com:rakeshkky/graphql-engine into issue-1182-cache-update
2 parents 1d8c647 + bf30119 commit 054b26a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

server/src-lib/Hasura/Server/SchemaUpdate.hs

+2-3
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,9 @@ schemaUpdateEventProcessor strfyNum pool logger httpManager
150150
-- init schema cache built then reload
151151
shouldReload (SUESuccess payload) =
152152
(_epInstanceId payload /= getInstanceId instanceId)
153-
&& withCacheInit (_epOccurredAt payload) cacheInit
153+
&& maybe True (withCacheInit $ _epOccurredAt payload) cacheInit
154154

155-
withCacheInit _ Nothing = False
156-
withCacheInit occurredAt (Just initTime) = occurredAt > initTime
155+
withCacheInit occurredAt initTime = occurredAt > initTime
157156

158157
logInfo :: Logger -> ThreadType -> Value -> IO ()
159158
logInfo logger threadType val = unLogger logger $

0 commit comments

Comments
 (0)