Skip to content

Commit 89df043

Browse files
Merge tag 'neo-v0.8.3' into neo-v0.x.x
neo-v0.8.3
2 parents 3d3ec26 + 65a187e commit 89df043

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/dhtproto/client/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ This package contains the client to connect to a Distributed Hash Table
66
client) currently supports two protocols, known as the "legacy protocol" and the
77
"neo procotol". Detailed documentation about the workings of swarm-based clients
88
and the two protocols can be found
9-
[here (legacy protocol)](https://github.com/sociomantic-tsunami/swarm/blob/v4.x.x/src/swarm/README_client.rst)
10-
and [here (neo protocol)](https://github.com/sociomantic-tsunami/swarm/blob/v4.x.x/src/swarm/README_client_neo.rst).
9+
[here (legacy protocol)](https://github.com/sociomantic-tsunami/swarm/blob/v5.x.x/src/swarm/README_client.rst)
10+
and [here (neo protocol)](https://github.com/sociomantic-tsunami/swarm/blob/v5.x.x/src/swarm/README_client_neo.rst).
1111

1212
The legacy protocol is to be phased out, so the remainder of this README focuses
1313
solely on the neo protocol.

src/dhtproto/client/legacy/internal/helper/RetryHandshake.d

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class RetryHandshake
3232
/// result in a confusing mess). This is a highly unusual case, though,
3333
/// so is not specifically supported. We can add better support, if it's
3434
/// ever needed.
35-
private Logger log;
35+
private Logger retry_log;
3636

3737
/// Timer to retry the handshake.
3838
protected TimerEvent timer;
@@ -90,7 +90,7 @@ class RetryHandshake
9090

9191
this.timer = new TimerEvent(&this.tryHandshake);
9292

93-
this.log = Log.lookup("RetryHandshake");
93+
this.retry_log = Log.lookup("RetryHandshake");
9494

9595
this.tryHandshake();
9696
}
@@ -107,7 +107,7 @@ class RetryHandshake
107107

108108
protected bool tryHandshake ( )
109109
{
110-
this.log.info("Attempting handshake.");
110+
this.retry_log.info("Attempting handshake.");
111111
this.dht.nodeHandshake(&this.result, &this.handshake_notifier);
112112

113113
return false;
@@ -129,14 +129,14 @@ class RetryHandshake
129129
{
130130
this.error();
131131

132-
this.log.info("Handshake did not succeed for all nodes. Retrying in {}s",
132+
this.retry_log.info("Handshake did not succeed for all nodes. Retrying in {}s",
133133
this.wait_time);
134134
this.epoll.register(this.timer);
135135
this.timer.set(this.wait_time, 0, 0, 0);
136136
}
137137
else
138138
{
139-
this.log.info("Handshake succeeded for all nodes.");
139+
this.retry_log.info("Handshake succeeded for all nodes.");
140140
this.success();
141141

142142
if ( this.handshake_complete_dg !is null )
@@ -159,7 +159,7 @@ class RetryHandshake
159159

160160
private void handshake_notifier ( DhtClient.RequestNotification info )
161161
{
162-
this.log.trace("Callback: {}", info.message(this.dht.msg_buf));
162+
this.retry_log.trace("Callback: {}", info.message(this.dht.msg_buf));
163163

164164
this.nodeHandshakeCB(info);
165165

@@ -185,7 +185,7 @@ class RetryHandshake
185185
{
186186
this.established_nodes[node_hash] = true;
187187
this.one_node_handshake_dg(info.nodeitem);
188-
this.log.info("Handshake succeeded on {}:{}.",
188+
this.retry_log.info("Handshake succeeded on {}:{}.",
189189
info.nodeitem.Address, info.nodeitem.Port);
190190
}
191191
}

0 commit comments

Comments
 (0)