Use always strings for cache keys (#13631)
* Use always strings for cache keys * fixing tests * Addressing PR review comments * Adding the base to FormatInt * Fix typo
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d881b68a38
Коммит
06fb1458ca
@@ -34,11 +34,9 @@ func (a *App) GetAllStatuses() map[string]*model.Status {
|
||||
statusMap := map[string]*model.Status{}
|
||||
|
||||
for _, userId := range userIds {
|
||||
if id, ok := userId.(string); ok {
|
||||
status := a.GetStatusFromCache(id)
|
||||
if status != nil {
|
||||
statusMap[id] = status
|
||||
}
|
||||
status := a.GetStatusFromCache(userId)
|
||||
if status != nil {
|
||||
statusMap[userId] = status
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user