Add CloseWithReason to agent SignalConn interface (#4492)
This commit is contained in:
@@ -212,6 +212,10 @@ func (w *AgentWorker) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (w *AgentWorker) CloseWithReason(_ string) error {
|
||||
return w.Close()
|
||||
}
|
||||
|
||||
// Closed returns a channel that is closed when the connection is closed by the server
|
||||
func (w *AgentWorker) Closed() <-chan struct{} {
|
||||
return w.fuse.Watch()
|
||||
|
||||
Reference in New Issue
Block a user