// Dynamically removes the given server from the client.
//
// serverAddr must be in the form 'host:port'
//
// This function may be called only if the client has been started
// via DistributedClient.Start() call,
// not via DistributedClient.StartStatic() call!
Dynamically removes the given server from the client.

serverAddr must be in the form 'host:port'

This function may be called only if the client has been started
via DistributedClient.Start() call,
not via DistributedClient.StartStatic() call!
// Dynamically removes the given server from the client . // // serverAddr must be in the form ' host : port ' // // This function may be called only if the client has been started // via DistributedClient . Start () call // not via DistributedClient . StartStatic () call!
func (c *DistributedClient) DeleteServer(serverAddr string) {
	if !c.isDynamic {
		panic("DistributedClient.DeleteServer() cannot be called from static client!")
	}
	client := c.deregisterClient(serverAddr)
	if client != nil {
		client.Stop()
	}
}
func ( c * DistributedClient ) DeleteServer ( serverAddr string ) { if ! c . isDynamic { panic ( " " ) } client := c . deregisterClient ( serverAddr ) if client != nil { client . Stop ( ) } }
Dynamically removes the given server from the client.
Dynamically removes the given server from the client .