[MM-61766] Fix errcheck issues in server/channels/app/platform/link_cache.go (#29363)

Этот коммит содержится в:
Ivy Gesare
2024-11-25 15:41:16 +03:00
коммит произвёл GitHub
родитель 2d841962b0
Коммит a61ffadd84
4 изменённых файлов: 17 добавлений и 10 удалений

Просмотреть файл

@@ -46,7 +46,9 @@ func (s *Server) initPostMetadata() {
(before.ImageProxySettings.ImageProxyType != after.ImageProxySettings.ImageProxyType) ||
(before.ImageProxySettings.RemoteImageProxyURL != after.ImageProxySettings.RemoteImageProxyURL) ||
(before.ImageProxySettings.RemoteImageProxyOptions != after.ImageProxySettings.RemoteImageProxyOptions) {
platform.PurgeLinkCache()
if err := platform.PurgeLinkCache(); err != nil {
mlog.Warn("Failed to remove cached links when the proxy settings changed", mlog.Err(err))
}
}
})
}