Skip to content

🎧 Your Personal Streaming Service

Don't use request's context when refreshing artist info in background

Deluan48b6fa7febf9
diff --git a/core/external_metadata.go b/core/external_metadata.go
index a07097256..e7824e000 100644
--- a/core/external_metadata.go
+++ b/core/external_metadata.go
@@ -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 time.Since(artist.ExternalInfoUpdatedAt) < consts.ArtistInfoTimeToLive {
go func() {
- err := e.refreshArtistInfo(ctx, artist)
+ err := e.refreshArtistInfo(context.Background(), artist)
if err != nil {
log.Error("Error refreshing ArtistInfo", "id", id, "name", artist.Name, err)
}