server+peer: init peer struct w/ AuxChanCloser if present

This commit is contained in:
Olaoluwa Osuntokun authored and Oliver Gugger committed 2024-09-19 10:18:41 +02:00
1 parent 625d426a56
commit 44ab7e6b10
3 files changed
+10

No files matched your search

+4
View File
@@ -400,6 +400,10 @@ type Config struct {
// in place.
MsgRouter fn.Option[msgmux.Router]
// AuxChanCloser is an optional instance of an abstraction that can be
// used to modify the way the co-op close transaction is constructed.
AuxChanCloser fn.Option[chancloser.AuxChanCloser]
// Quit is the server's quit channel. If this is closed, we halt operation.
Quit chan struct{}
}