Use slice to store lexialicly orderd key value pairs

This commit is contained in:
Holger Obermaier
2023-09-19 14:48:11 +02:00
parent c87c77a810
commit 42a9423203
2 changed files with 37 additions and 12 deletions

View File

@@ -130,9 +130,10 @@ func (r *HttpReceiver) ServerHttp(w http.ResponseWriter, req *http.Request) {
fields[string(key)] = value.Interface()
}
// Decode time stamp
t, err := d.Time(influx.Nanosecond, time.Time{})
if err != nil {
msg := "ServerHttp: Failed to decode time: " + err.Error()
msg := "ServerHttp: Failed to decode time stamp: " + err.Error()
cclog.ComponentError(r.name, msg)
http.Error(w, msg, http.StatusInternalServerError)
return