MCPcopy Create free account
hub / github.com/tinode/chat / masterToProxyAsync

Method masterToProxyAsync

server/cluster.go:416–422  ·  view source on GitHub ↗

masterToProxyAsync forwards response from topic master to topic proxy in a fire-and-forget manner.

(msg *ClusterResp)

Source from the content-addressed store, hash-verified

414// masterToProxyAsync forwards response from topic master to topic proxy
415// in a fire-and-forget manner.
416func (n *ClusterNode) masterToProxyAsync(msg *ClusterResp) error {
417 var unused bool
418 if c := n.callAsync("Cluster.TopicProxy", msg, &unused, nil); c.Error != nil {
419 return c.Error
420 }
421 return nil
422}
423
424// route routes server message within the cluster.
425func (n *ClusterNode) route(msg *ClusterRoute) error {

Callers 1

clusterWriteLoopMethod · 0.80

Calls 1

callAsyncMethod · 0.95

Tested by

no test coverage detected