Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
deskscreen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kowis-projects
deskscreen
Commits
680161fe
Commit
680161fe
authored
Apr 03, 2019
by
David
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Add a delay on a retry for weather stuff, so it doesn't hammer"
This reverts commit
22a24091
.
parent
79bb5f6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
src/main/kotlin/is/kow/deskscreen/wx/WeatherController.kt
src/main/kotlin/is/kow/deskscreen/wx/WeatherController.kt
+2
-6
No files found.
src/main/kotlin/is/kow/deskscreen/wx/WeatherController.kt
View file @
680161fe
...
...
@@ -151,9 +151,7 @@ class WeatherController : Controller() {
//TODO: emit to the ticker the error to display it on the screen
logger
.
error
(
"Failed to acquire station identifier!"
,
throwable
)
}
.
retryWhen
{
Observable
.
timer
(
1
,
TimeUnit
.
SECONDS
)
}
.
retry
()
.
subscribe
()
//Acquire the hourly forecast url too
...
...
@@ -178,9 +176,7 @@ class WeatherController : Controller() {
//TODO: emit to the ticker the error to display it on the screen
logger
.
error
(
"Failed to acquire hourly forecast url"
,
throwable
)
}
.
retryWhen
{
Observable
.
timer
(
1
,
TimeUnit
.
SECONDS
)
}
.
retry
()
//TODO: should have some kind of backoff or whatever yeah need that
.
subscribe
()
//EMIT!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment