diff --git a/bridge/slack/helpers.go b/bridge/slack/helpers.go index 6553a4e6..b0af50f5 100644 --- a/bridge/slack/helpers.go +++ b/bridge/slack/helpers.go @@ -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.",