MCPcopy Index your code
hub / github.com/coder/coder / loadProviders

Method loadProviders

coderd/aibridged/pool.go:144–149  ·  view source on GitHub ↗

loadProviders returns the current providers snapshot. The returned slice must not be mutated.

()

Source from the content-addressed store, hash-verified

142// loadProviders returns the current providers snapshot. The returned
143// slice must not be mutated.
144func (p *CachedBridgePool) loadProviders() []aibridge.Provider {
145 if ptr := p.providers.Load(); ptr != nil {
146 return *ptr
147 }
148 return nil
149}
150
151// Acquire retrieves or creates a [*aibridge.RequestBridge] instance per given key.
152//

Callers 1

AcquireMethod · 0.95

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected