Browse Source

Fixed comment styling of #100

dependabot/npm_and_yarn/web/prismjs-1.21.0
Max Schmitt 8 years ago
committed by GitHub
parent
commit
912c53cdcb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      stores/redis/redis.go

6
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. // 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) data, err := json.Marshal(visitor)
if err != nil { 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) logrus.Error(msg)
return errors.Wrap(err, msg) return errors.Wrap(err, msg)
} }
@ -303,7 +303,7 @@ func (r *Store) RegisterVisitor(id, visitId string, visitor shared.Visitor) erro
return err 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) { func (r *Store) GetVisitors(id string) ([]shared.Visitor, error) {
var visitors []shared.Visitor var visitors []shared.Visitor
key := entryVisitsPrefix + id key := entryVisitsPrefix + id

Loading…
Cancel
Save