dmitri.shuralyov.com/service/change/fs

rename threadType constant

Give it a more specific name. This improves clarity of what it means
and how it's being used in the ThreadType method.
dmitshur committed 5 years ago commit 17086f11787b0ad3d36fd609387e7709d6195c46
Showing partial commit. Full Commit
Collapse all
fs/fs.go
@@ -392,15 +392,15 @@ func (s *Service) EditComment(ctx context.Context, repo string, id uint64, cr ch

func hasChange(repo string, id uint64) bool {
	return 1 <= id && id <= uint64(len(s.changes[repo]))
}

// threadType is the notifications thread type for this service.
const threadType = "Change"
// fsChangeThreadType is the notification thread type for changes stored in a virtual filesystem.
const fsChangeThreadType = "Change"

// ThreadType returns the notifications thread type for this service.
func (*Service) ThreadType(repo string) string { return threadType }
// ThreadType returns the notification thread type for this service.
func (*Service) ThreadType(repo string) string { return fsChangeThreadType }

var (
	dmitshur = users.User{
		UserSpec: users.UserSpec{
			ID:     1924134,