Improve status module

This commit is contained in:
Daniel
2019-01-29 16:20:06 +01:00
parent e8b5cedc9d
commit 321f3feec5
13 changed files with 342 additions and 107 deletions

View File

@@ -135,7 +135,7 @@ func EnsureProfile(r record.Record) (*Profile, error) {
// or adjust type
new, ok := r.(*Profile)
if !ok {
return nil, fmt.Errorf("record not of type *Example, but %T", r)
return nil, fmt.Errorf("record not of type *Profile, but %T", r)
}
return new, nil
}

View File

@@ -31,7 +31,7 @@ func updateListener(sub *database.Subscription) {
profile, err := EnsureProfile(r)
if err != nil {
log.Errorf("profile: received update for special profile, but could not read: %s", err)
log.Errorf("profile: received update for profile, but could not read: %s", err)
continue
}