diff --git a/pkg/sources/birdwatcher/source.go b/pkg/sources/birdwatcher/source.go index d0b2d0a..978d5c6 100644 --- a/pkg/sources/birdwatcher/source.go +++ b/pkg/sources/birdwatcher/source.go @@ -180,10 +180,10 @@ func (b *GenericBirdwatcher) fetchProtocolsShort(ctx context.Context) ( timeout = time.Duration(b.config.NeighborsRefreshTimeout) * time.Second } - timeoutCtx, cancel := context.WithTimeout(ctx, timeout) + ctx, cancel := context.WithTimeout(ctx, timeout) defer cancel() - bird, err := b.client.GetJSON(timeoutCtx, "/protocols/short?uncached=true") + bird, err := b.client.GetJSON(ctx, "/protocols/short?uncached=true") if err != nil { return nil, nil, err }