refactor: rename releasePool to flushPool and document its intended behaviour

Also fix documentation of AppState pool field.
This commit is contained in:
Robert Vollmert
2022-08-29 14:55:09 +02:00
committed by Robert
parent 8e96e3b3ae
commit 79b865ba79
2 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ connectionWorker appState = do
connectionStatus :: AppState -> IO ConnectionStatus
connectionStatus appState =
retrying retrySettings shouldRetry $
const $ AppState.releasePool appState >> getConnectionStatus
const $ AppState.flushPool appState >> getConnectionStatus
where
retrySettings = capDelay delayMicroseconds $ exponentialBackoff backoffMicroseconds
delayMicroseconds = 32000000 -- 32 seconds