aboutsummaryrefslogtreecommitdiffstats
path: root/hived.go
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-02-26 03:29:18 +0000
committerterminaldweller <thabogre@gmail.com>2021-02-26 03:29:18 +0000
commit09d2e7b1a5369d7bdc9086de25610b682fab15af (patch)
treee7a221fbdfe0535f905365baa958e8f8d957ca5d /hived.go
parentadded a health endpoint. change endpoint name to alert. added a health endpoi... (diff)
downloadhived-09d2e7b1a5369d7bdc9086de25610b682fab15af.tar.gz
hived-09d2e7b1a5369d7bdc9086de25610b682fab15af.zip
fixed a typo. updated README
Diffstat (limited to 'hived.go')
-rw-r--r--hived.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/hived.go b/hived.go
index a1cd988..2dc7492 100644
--- a/hived.go
+++ b/hived.go
@@ -27,7 +27,6 @@ import (
var flagPort = flag.String("port", "8008", "determined the port the sercice runs on")
-var alertFile = flag.String("alertfile", "/run/secrets/alerts", "determines the locaiton of the alert files")
var alertsCheckInterval = flag.Int64("alertinterval", 600., "in seconds, the amount of time between alert checks")
var redisAddress = flag.String("redisaddress", "redis:6379", "determines the address of the redis instance")
var redisPassword = flag.String("redispassword", "", "determines the password of the redis db")
@@ -455,7 +454,7 @@ func handleAlertDelete(w http.ResponseWriter, r *http.Request) {
params := r.URL.Query()
for key, value := range params {
switch key {
- case "Id":
+ case "id":
Id = value[0]
default:
log.Error().Err(errors.New("bad parameters for the crypto endpoint."))