nice dynamic UI when connecting to relays, and go much faster concurrently.

This commit is contained in:
fiatjaf
2025-04-03 11:42:33 -03:00
parent 50119e21e6
commit 9547711e8d
9 changed files with 199 additions and 79 deletions

2
dvm.go
View File

@@ -60,7 +60,7 @@ var dvm = &cli.Command{
Flags: flags,
Action: func(ctx context.Context, c *cli.Command) error {
relayUrls := c.StringSlice("relay")
relays := connectToAllRelays(ctx, relayUrls, false)
relays := connectToAllRelays(ctx, relayUrls, nil)
if len(relays) == 0 {
log("failed to connect to any of the given relays.\n")
os.Exit(3)