minor refactors
This commit is contained in:
+2
-1
@@ -202,8 +202,9 @@ public class FullDataSourceV2
|
||||
|
||||
public static FullDataSourceV2 createEmpty(long pos)
|
||||
{
|
||||
FullDataPointIdMap map = new FullDataPointIdMap(pos);
|
||||
return new FullDataSourceV2(
|
||||
pos, new FullDataPointIdMap(pos),
|
||||
pos, map,
|
||||
// data points, genSteps, and columnCompression are all null since
|
||||
// nothing has been generated yet.
|
||||
// Using the default value of all 0's is adequate
|
||||
|
||||
+2
-2
@@ -331,7 +331,7 @@ public class WorldGenerationQueue implements IFullDataSourceRetrievalQueue, IDeb
|
||||
}
|
||||
|
||||
|
||||
// a task has been started or queued
|
||||
// a task has been started or queued,
|
||||
// queue another task
|
||||
return true;
|
||||
}
|
||||
@@ -360,7 +360,7 @@ public class WorldGenerationQueue implements IFullDataSourceRetrievalQueue, IDeb
|
||||
this.rollingAverageChunkGenTimeInMs.add(timePerChunk);
|
||||
});
|
||||
|
||||
generationFuture.handle((fullDataSourceV2, exception) ->
|
||||
generationFuture.handle((FullDataSourceV2 fullDataSource, Throwable exception) ->
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
+2
-1
@@ -155,7 +155,8 @@ public abstract class AbstractFullDataNetworkRequestQueue implements IDebugRende
|
||||
this.failedRequests.incrementAndGet();
|
||||
break;
|
||||
default:
|
||||
if (throwable != null && !(throwable instanceof CancellationException))
|
||||
if (throwable != null
|
||||
&& !(throwable instanceof CancellationException))
|
||||
{
|
||||
this.failedRequests.incrementAndGet();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user