mirror of
https://github.com/aljazceru/crawler_v2.git
synced 2025-12-17 07:24:21 +01:00
avoid print err for ctx cancellation at shutdown
This commit is contained in:
@@ -113,7 +113,7 @@ func Archiver(
|
||||
}
|
||||
}()
|
||||
|
||||
if err != nil {
|
||||
if err != nil && ctx.Err() == nil {
|
||||
log.Printf("Archiver: event ID %s, kind %d by %s: %v", event.ID, event.Kind, event.PubKey, err)
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ func GraphBuilder(
|
||||
return cache.Update(opctx, delta)
|
||||
}()
|
||||
|
||||
if err != nil {
|
||||
if err != nil && ctx.Err() == nil {
|
||||
log.Printf("GraphBuilder: event ID %s, kind %d by %s: %v", event.ID, event.Kind, event.PubKey, err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user