From 912c53cdcbf9f778a8e3495f19cd993d9881c646 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 7 May 2018 22:54:08 +0200 Subject: [PATCH] Fixed comment styling of #100 --- stores/redis/redis.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stores/redis/redis.go b/stores/redis/redis.go index 0b64215..aa22116 100644 --- a/stores/redis/redis.go +++ b/stores/redis/redis.go @@ -285,10 +285,10 @@ func (r *Store) GetUserEntries(userIdentifier string) (map[string]shared.Entry, } // RegisterVisitor adds a shared.Visitor to the list of visits for a path. -func (r *Store) RegisterVisitor(id, visitId string, visitor shared.Visitor) error { +func (r *Store) RegisterVisitor(id, visitID string, visitor shared.Visitor) error { data, err := json.Marshal(visitor) if err != nil { - msg := fmt.Sprintf("Could not marshal JSON for entry %s, visitId %s", id, visitId) + msg := fmt.Sprintf("Could not marshal JSON for entry %s, visitID %s", id, visitID) logrus.Error(msg) return errors.Wrap(err, msg) } @@ -303,7 +303,7 @@ func (r *Store) RegisterVisitor(id, visitId string, visitor shared.Visitor) erro return err } -// Return the full list of visitors for a path. +// GetVisitors returns the full list of visitors for a path. func (r *Store) GetVisitors(id string) ([]shared.Visitor, error) { var visitors []shared.Visitor key := entryVisitsPrefix + id