fix(opencode): unref provider tracker interval (#1191)

Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
Isaac Sanchez-Hawkins
2026-05-12 11:07:24 +03:00
committed by GitHub
co-authored by Isaac Sanchez
parent de72811cf1
commit b94afbc6ef
@@ -41,7 +41,8 @@ function evictStaleProviders(): void {
}
if (typeof setInterval !== 'undefined') {
setInterval(evictStaleProviders, PROVIDER_EVICTION_INTERVAL_MS)
const interval = setInterval(evictStaleProviders, PROVIDER_EVICTION_INTERVAL_MS)
;(interval as unknown as { unref?: () => void }).unref?.()
}
function getOrCreateProvider(providerID: string): ProviderState {