// UnregisterNode unregisters the node in the etcd
UnregisterNode unregisters the node in the etcd
// UnregisterNode unregisters the node in the etcd
func (r *EtcdRegistry) UnregisterNode(pctx context.Context, prefix, nodeID string) error {
	ctx, cancel := context.WithTimeout(pctx, r.reqTimeout)
	defer cancel()
	key := r.prefixed(prefix, nodeID)
	err := r.client.Delete(ctx, key, true)
	return errors.Trace(err)
}
func ( r * EtcdRegistry ) UnregisterNode ( pctx context . Context , prefix , nodeID string ) error { ctx , cancel := context . WithTimeout ( pctx , r . reqTimeout ) defer cancel ( ) key := r . prefixed ( prefix , nodeID ) err := r . client . Delete ( ctx , key , true ) return errors . Trace ( err ) }
UnregisterNode unregisters the node in the etcd
UnregisterNode unregisters the node in the etcd