Improve code readability

This commit is contained in:
2014-09-11 22:53:53 +04:00
parent 3fc1601f5d
commit e0b3743a00
2 changed files with 11 additions and 12 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ func New(st *storage.Storage) *Hub {
subscribers: []*Subscription{},
}
go h.cleanupPeriodically()
go h.cleanupEverySecond()
return h
}
@@ -57,7 +57,7 @@ func (h *Hub) Sub(s *Subscription) {
h.subscribers = append(h.subscribers, s)
}
func (h *Hub) cleanupPeriodically() {
func (h *Hub) cleanupEverySecond() {
t := time.NewTicker(1 * time.Second)
for {