Skip to content

Commit

Permalink
Merge pull request #95 from zarghol/fix/timeout
Browse files Browse the repository at this point in the history
HOTFIX : remove timeout for now
  • Loading branch information
Clément Nonn authored Jun 2, 2021
2 parents 9e92758 + f06b197 commit 05204c8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions RunningOrder/Shared/AppStateManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ final class AppStateManager: ObservableObject {
return true
}
})
.mapError { _ -> Error in Error.unexistingError } // Map never to an error type to allow to use timeout
.timeout(15.0, scheduler: DispatchQueue.main, customError: { Error.fetchTimeout }) // timeout if too long
.map { firstSpaces in
Logger.debug.log(firstSpaces)
if let storedSpaceName = self.storedSpaceName,
Expand All @@ -73,7 +71,6 @@ final class AppStateManager: ObservableObject {
return .spaceCreation
}
}
.catch { error in Just(AppStateManager.State.error(error)) } // catch timeout error
.assign(to: &$currentState)
}
}

0 comments on commit 05204c8

Please sign in to comment.