File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -37,20 +37,19 @@ async fn main() -> anyhow::Result<()> {
37
37
println ! ( "node id: {me}" ) ;
38
38
println ! ( "node listening addresses:" ) ;
39
39
40
- let node_addr = endpoint. node_addr ( ) . initialized ( ) . await ?;
41
- let local_addrs = node_addr
42
- . direct_addresses
40
+ let local_addrs = endpoint
41
+ . direct_addresses ( )
42
+ . initialized ( )
43
+ . await ?
43
44
. into_iter ( )
44
45
. map ( |addr| {
45
- let addr = addr. to_string ( ) ;
46
+ let addr = addr. addr . to_string ( ) ;
46
47
println ! ( "\t {addr}" ) ;
47
48
addr
48
49
} )
49
50
. collect :: < Vec < _ > > ( )
50
51
. join ( " " ) ;
51
- let relay_url = node_addr
52
- . relay_url
53
- . expect ( "Should have a relay URL, assuming a default endpoint setup." ) ;
52
+ let relay_url = endpoint. home_relay ( ) . initialized ( ) . await ?;
54
53
println ! ( "node relay server url: {relay_url}" ) ;
55
54
println ! ( "\n in a separate terminal run:" ) ;
56
55
You can’t perform that action at this time.
0 commit comments