MCPcopy
hub / github.com/di-sukharev/opencommit / removeUpstream

Method removeUpstream

out/cli.cjs:55816–55823  ·  view source on GitHub ↗
(upstream)

Source from the content-addressed store, hash-verified

55814 client[kWeight] = this[kMaxWeightPerServer];
55815 }
55816 this._updateBalancedPoolStats();
55817 return this;
55818 }
55819 _updateBalancedPoolStats() {
55820 this[kGreatestCommonDivisor] = this[kClients].map((p4) => p4[kWeight]).reduce(getGreatestCommonDivisor, 0);
55821 }
55822 removeUpstream(upstream) {
55823 const upstreamOrigin = parseOrigin(upstream).origin;
55824 const pool = this[kClients].find((pool2) => pool2[kUrl].origin === upstreamOrigin && pool2.closed !== true && pool2.destroyed !== true);
55825 if (pool) {
55826 this[kRemoveClient](pool);

Callers

nothing calls this directly

Calls 1

parseOriginFunction · 0.85

Tested by

no test coverage detected