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

This commit is contained in:
Olaoluwa Osuntokun
2024-05-29 19:57:46 +02:00
committed by Oliver Gugger
parent 8b97d4f833
commit fbbcecc635
3 changed files with 10 additions and 0 deletions

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{}
}