Fixing race in update channel (#7269)
* Fixing race in update channel * Switching to struct copy
Этот коммит содержится в:
@@ -405,7 +405,7 @@ func (s SqlChannelStore) get(id string, master bool, allowFromCache bool) StoreC
|
||||
if metrics != nil {
|
||||
metrics.IncrementMemCacheHitCounter("Channel")
|
||||
}
|
||||
result.Data = cacheItem.(*model.Channel)
|
||||
result.Data = (cacheItem.(*model.Channel)).DeepCopy()
|
||||
storeChannel <- result
|
||||
close(storeChannel)
|
||||
return
|
||||
|
||||
Ссылка в новой задаче
Block a user