Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Handle error when polling #15

Closed
michaelsanford opened this issue Feb 13, 2019 · 0 comments
Closed

Handle error when polling #15

michaelsanford opened this issue Feb 13, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@michaelsanford
Copy link
Owner

michaelsanford commented Feb 13, 2019

Handle error in package polling to account for connectivity issues

go func(items chan []PullRequest) {
	for ; true; <-ticker.C {
		resp, _ := client.Do(req)
		bodyText, _ := ioutil.ReadAll(resp.Body)
		s := extract(string(bodyText))
		items <- s
	}
}(items)

https://golang.org/pkg/net/http/#Client.Do

Change the system tray icon and probably don't panic()?

@michaelsanford michaelsanford added the bug Something isn't working label Feb 13, 2019
@michaelsanford michaelsanford self-assigned this Feb 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant