Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
reinkrul committed Dec 8, 2023
1 parent 51f88f1 commit 6d60474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discovery/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ func (s *sqlStore) updateTag(tx *gorm.DB, serviceID string, newTimestamp *Tag) (
// If LastTag is empty, it means the service was just created and no presentations were added yet.
ts := service.LastTag.Timestamp(service.TagPrefix)
if ts == nil {
// would be very weird
// would be very weird: can't decode it, although it's our own tag
return nil, fmt.Errorf("invalid tag '%s'", service.LastTag)
}
currTimestamp = *ts
Expand Down

0 comments on commit 6d60474

Please sign in to comment.