From 079f346ca9ef0c40fd85456a1d1dda7e8ae47e72 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 19 Apr 2020 11:30:48 +1000 Subject: [PATCH] Readability --- request_strategy_defaults.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/request_strategy_defaults.go b/request_strategy_defaults.go index 2044c187..6bfba8f4 100644 --- a/request_strategy_defaults.go +++ b/request_strategy_defaults.go @@ -30,8 +30,10 @@ func (requestStrategyDefaults) iterUndirtiedChunks(p requestStrategyPiece, f fun func (requestStrategyDefaults) nominalMaxRequests(cn requestStrategyConnection) int { return int( - max(64, - cn.stats().ChunksReadUseful.Int64()-(cn.stats().ChunksRead.Int64()-cn.stats().ChunksReadUseful.Int64()))) + max( + 64, + cn.stats().ChunksReadUseful.Int64()- + (cn.stats().ChunksRead.Int64()-cn.stats().ChunksReadUseful.Int64()))) } func (requestStrategyDefaults) piecePriority(cn requestStrategyConnection, piece pieceIndex, tpp piecePriority, prio int) int {