/*
UnexportPort removes the associated exported port. This will only delete the
most recently exported port. Exported ports will disappear by themselves once
the process dies, but this will expedite the process.
*/
UnexportPort removes the associated exported port. This will only delete the
most recently exported port. Exported ports will disappear by themselves once
the process dies, but this will expedite the process.
/ * UnexportPort removes the associated exported port . This will only delete the most recently exported port . Exported ports will disappear by themselves once the process dies but this will expedite the process . * /
func (e *ServiceExporter) UnexportPort(ctx context.Context) error {
	var err error
	if len(e.path) == 0 {
		return nil
	}
	if _, err = e.kv.Delete(ctx, e.path); err != nil {
		return err
	}
	return nil
}
func ( e * ServiceExporter ) UnexportPort ( ctx context . Context ) error { var err error if len ( e . path ) == 0 { return nil } if _ , err = e . kv . Delete ( ctx , e . path ) ; err != nil { return err } return nil }
UnexportPort removes the associated exported port.
UnexportPort removes the associated exported port .