From e0aa15b697949c69257025aa9315983bc9425445 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Mon, 3 Dec 2018 22:05:33 +0800 Subject: [PATCH] Reverted accidental inclusion. --- bridge/slack/helpers.go | 2 -- 1 file changed, 2 deletions(-) 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.",