summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.go b/main.go
index e37670f..9db9d5a 100644
--- a/main.go
+++ b/main.go
@@ -15,7 +15,6 @@ import (
var porn EarthPorn
var weather Weather
-var sun Sun
func trylater(ch chan<- bool) {
log.Println("Will try again later...")
@@ -39,7 +38,7 @@ func earthPornUpdater(ch chan bool) {
func weatherUpdater(ch chan bool) {
for _ = range ch {
- newW, newS, err := CurrentWeather()
+ newW, err := CurrentWeather()
if err != nil {
log.Printf("Failed getting latest weather data: %s", err)
go trylater(ch)
@@ -47,7 +46,6 @@ func weatherUpdater(ch chan bool) {
}
weather = newW
- sun = newS
log.Println("New weather data")
}
}