MCPcopy Index your code
hub / github.com/SMNETSTUDIO/Groq2API / GetProxyIP

Method GetProxyIP

pkg/proxypool/proxys.go:20–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20func (p *IProxy) GetProxyIP() string {
21 if p == nil {
22 return ""
23 }
24 p.lock.Lock()
25 defer p.lock.Unlock()
26
27 if len(p.ips) == 0 {
28 return ""
29 }
30
31 proxyIp := p.ips[0]
32 p.ips = append(p.ips[1:], proxyIp)
33 return proxyIp
34}

Callers 2

chatFunction · 0.80
modelsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected