Skip to content

Commit 947a263

Browse files
committed
fix: handshake_time unit
1 parent 739d009 commit 947a263

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

interop/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
These commands are to be run in `./interop/exec`
2+
3+
## Redis
4+
5+
```bash
6+
docker run -p 6379:6379 -it redis:latest
7+
```
8+
9+
## Listener
10+
11+
```bash
12+
transport=tcp ip=0.0.0.0 is_dialer=false redis_addr=localhost:6379 test_timeout_seconds=180 security=insecure muxer=mplex python3 native_ping.py
13+
```
14+
15+
## Dialer
16+
17+
```bash
18+
transport=tcp ip=0.0.0.0 is_dialer=true redis_addr=localhost:6379 port=8001 test_timeout_seconds=180 security=insecure muxer=mplex python3 native_ping.py
19+
```

interop/lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async def run_test(
9797

9898
handshake_plus_ping = (time.perf_counter() - handshake_start) * 1000.0
9999

100-
logger.info(f"handshake time: {handshake_plus_ping}")
100+
logger.info(f"handshake time: {handshake_plus_ping:.2f}ms")
101101
return
102102

103103
await trio.sleep_forever()

0 commit comments

Comments
 (0)