mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-06 02:13:29 +03:00
Don't use request's context when refreshing artist info in background
This commit is contained in:
parent
25d62cd751
commit
48b6fa7feb
@ -99,7 +99,7 @@ func (e *externalMetadata) UpdateArtistInfo(ctx context.Context, id string, simi
|
|||||||
// If we have fresh info, just return it and trigger a refresh in the background
|
// If we have fresh info, just return it and trigger a refresh in the background
|
||||||
if time.Since(artist.ExternalInfoUpdatedAt) < consts.ArtistInfoTimeToLive {
|
if time.Since(artist.ExternalInfoUpdatedAt) < consts.ArtistInfoTimeToLive {
|
||||||
go func() {
|
go func() {
|
||||||
err := e.refreshArtistInfo(ctx, artist)
|
err := e.refreshArtistInfo(context.Background(), artist)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Error refreshing ArtistInfo", "id", id, "name", artist.Name, err)
|
log.Error("Error refreshing ArtistInfo", "id", id, "name", artist.Name, err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user