mirror of https://github.com/fiatjaf/nak.git
feat(bunker): delay bunker info print after direct connect response
- Introduce a 3-second delay before calling `printBunkerInfo`
This commit is contained in:
parent
790e39e76c
commit
c31b45e996
|
@ -541,7 +541,11 @@ var bunker = &cli.Command{
|
|||
log(color.GreenString("\nConnect response sent successfully to %d relay(s)!\n"), successCount.Load())
|
||||
}
|
||||
|
||||
printBunkerInfo()
|
||||
// print bunker info again after this
|
||||
go func() {
|
||||
time.Sleep(3 * time.Second)
|
||||
printBunkerInfo()
|
||||
}()
|
||||
}
|
||||
|
||||
// handleBunkerCommand processes user commands in the bunker interface
|
||||
|
|
Loading…
Reference in New Issue