Add CloseWithReason to agent SignalConn interface (#4492)

This commit is contained in:
Théo Monnom
2026-04-28 22:14:06 -07:00
committed by GitHub
parent d7c2daf1ac
commit af1dcc8843
3 changed files with 14 additions and 2 deletions
+4
View File
@@ -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()