MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / subscriptionClient

Method subscriptionClient

internal/home/client.go:300–311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298}
299
300func (c *Client) subscriptionClient() (*redis.Client, error) {
301 if errEnsure := c.ensureClients(); errEnsure != nil {
302 return nil, errEnsure
303 }
304 c.mu.Lock()
305 sub := c.sub
306 c.mu.Unlock()
307 if sub == nil {
308 return nil, ErrNotConnected
309 }
310 return sub, nil
311}
312
313func (c *Client) Ping(ctx context.Context) error {
314 cmd, errClient := c.commandClient()

Callers 1

StartConfigSubscriberMethod · 0.95

Calls 1

ensureClientsMethod · 0.95

Tested by

no test coverage detected