We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a26040e commit a7026c5Copy full SHA for a7026c5
main.go
@@ -15,7 +15,7 @@ import (
15
)
16
17
var (
18
- version = "0.1.0"
+ version = "0.1.1"
19
debug bool
20
21
@@ -27,11 +27,13 @@ type PriceData struct {
27
type Response []PriceData
28
29
func doEvery(d time.Duration, f func(time.Time)) {
30
+ f(time.Now()) // Execute immediately
31
for x := range time.Tick(d) {
32
f(x)
33
}
34
35
36
+
37
func pushToInflux(t time.Time) {
38
priceArea := os.Getenv("PRICE_AREA")
39
if priceArea == "" {
0 commit comments