[BROKEN COMMIT]
This code leverages the new `types.isType` functionality introduced in the flux language (https://github.com/influxdata/flux/issues/2159) This code will fix https://github.com/AnalogJ/scrutiny/issues/22 and all related issues. Unfortunately this code is broken because the influxdb go client library does not correctly handle import statments in the task defintion. blocked by https://github.com/influxdata/influxdb-client-go/issues/322
This commit is contained in:
+2
-2
@@ -32,7 +32,7 @@ func main() {
|
||||
log.Fatalf("ERROR %v", err)
|
||||
}
|
||||
defer file.Close()
|
||||
_, err = SendPostRequest("http://localhost:8080/api/devices/register", file)
|
||||
_, err = SendPostRequest("http://localhost:9090/api/devices/register", file)
|
||||
if err != nil {
|
||||
log.Fatalf("ERROR %v", err)
|
||||
}
|
||||
@@ -46,7 +46,7 @@ func main() {
|
||||
log.Fatalf("ERROR %v", err)
|
||||
}
|
||||
|
||||
_, err = SendPostRequest(fmt.Sprintf("http://localhost:8080/api/device/%s/smart", diskId), smartDataReader)
|
||||
_, err = SendPostRequest(fmt.Sprintf("http://localhost:9090/api/device/%s/smart", diskId), smartDataReader)
|
||||
if err != nil {
|
||||
log.Fatalf("ERROR %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user