Skip to content

Commit

Permalink
Apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
moreal committed Nov 6, 2019
1 parent 3e89ae9 commit 186f3ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CHANGES.md
Expand Up @@ -81,8 +81,8 @@ To be released.
incomplete states from the beginning if necessary. [[#645]]
- `IStore.PutBlock<T>()` became to do nothing when it takes
the `Block<T>` more than once. [[#647]]
- `PreloadAsync()` became to retry block-download process with another peers
when the process failed. [[#636]]
- `Swarm<T>.PreloadAsync()` became to try downloading blocks from all neighbor peers,
even if any peer among them is unavailable to send blocks. [[#636]]

### Bug fixes

Expand Down
8 changes: 4 additions & 4 deletions Libplanet/Net/Swarm.cs
Expand Up @@ -647,7 +647,7 @@ public void BroadcastTxs(IEnumerable<Transaction<T>> txs)
try
{
_logger.Information(
"Try to download blocks from {EndPoint}@{Address}",
"Try to download blocks from {EndPoint}@{Address}.",
peerWithHeight.Peer.EndPoint,
peerWithHeight.Peer.Address.ToHex());
await SyncBehindsBlocksFromPeerAsync(
Expand All @@ -661,16 +661,16 @@ public void BroadcastTxs(IEnumerable<Transaction<T>> txs)
catch (Exception e)
{
_logger.Error(
"Exception was thrown during block download with {EndPoint}@{Address}\n"
+ "{Exception}",
"Exception was thrown during downloading blocks from "
+ "{EndPoint}@{Address}.\n{Exception}",
peerWithHeight.Peer.EndPoint,
peerWithHeight.Peer.Address.ToHex(),
e);
continue;
}

_logger.Information(
"Finished to download blocks from {EndPoint}@{Address}",
"Finished to download blocks from {EndPoint}@{Address}.",
peerWithHeight.Peer.EndPoint,
peerWithHeight.Peer.Address.ToHex());
blockDownloadComplete = true;
Expand Down

0 comments on commit 186f3ae

Please sign in to comment.