updated Update() doc
This commit is contained in:
parent
0583189645
commit
a0ae04c494
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ func NewStream(URL string) Stream {
|
||||||
return stream
|
return stream
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update calls itself every Interval milliseconds
|
// Update gets called by UpdateInterval Interval milliseconds to fetch the latest instant
|
||||||
func (s Stream) Update() {
|
func (s Stream) Update() {
|
||||||
log.Print("Update:", s.URL)
|
log.Print("Update:", s.URL)
|
||||||
resp, err := http.Get(s.URL)
|
resp, err := http.Get(s.URL)
|
||||||
|
|
Loading…
Add table
Reference in a new issue