fix(opencode): unref provider tracker interval (#1191)
Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
committed by
GitHub
co-authored by
Isaac Sanchez
parent
de72811cf1
commit
b94afbc6ef
@@ -41,7 +41,8 @@ function evictStaleProviders(): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof setInterval !== 'undefined') {
|
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 {
|
function getOrCreateProvider(providerID: string): ProviderState {
|
||||||
|
|||||||
Reference in New Issue
Block a user