Reverted accidental inclusion.

This commit is contained in:
Patrick Connolly
2018-12-03 22:05:33 +08:00
committed by GitHub
parent 3e39c88796
commit e0aa15b697

View File

@@ -64,7 +64,6 @@ func (b *Bslack) getChannelBy(lookupKey string, lookupMap map[string]*slack.Chan
const minimumRefreshInterval = 10 * time.Second
func (b *Bslack) populateUsers() {
time.Sleep(time.Second)
b.refreshMutex.Lock()
if time.Now().Before(b.earliestUserRefresh) || b.refreshInProgress {
b.Log.Debugf("Not refreshing user list as it was done less than %v ago.",
@@ -109,7 +108,6 @@ func (b *Bslack) populateUsers() {
}
func (b *Bslack) populateChannels() {
time.Sleep(time.Second)
b.refreshMutex.Lock()
if time.Now().Before(b.earliestChannelRefresh) || b.refreshInProgress {
b.Log.Debugf("Not refreshing channel list as it was done less than %v seconds ago.",