mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-25 17:42:25 +01:00
This commit is contained in:
@@ -31,3 +31,10 @@ func (cm *ChanMap) ChanBlocked(key string) chan string {
|
||||
cm.m.Store(key, ch)
|
||||
return ch
|
||||
}
|
||||
|
||||
func (cm *ChanMap) HasChanKey(key string) bool {
|
||||
if _, ok := cm.m.Load(key); ok {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user