Skip to content

Commit 23f48ca

Browse files
committed
fix: code style
1 parent 601447b commit 23f48ca

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/HugeTraverser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,8 +1028,8 @@ public class EdgesIterator implements Iterator<Iterator<Edge>>, Closeable {
10281028
public EdgesIterator(EdgesQueryIterator queries) {
10291029
List<Iterator<Edge>> iteratorList = new ArrayList<>();
10301030
while (queries.hasNext()) {
1031-
iteratorList.add(
1032-
graph().edges(queries.next()));
1031+
Iterator<Edge> edges = graph.edges(queries.next());
1032+
iteratorList.add(edges);
10331033
}
10341034
this.currentIter = iteratorList.iterator();
10351035
}

hugegraph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/OltpTraverser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,17 +285,17 @@ public static class ConcurrentVerticesConsumer implements Consumer<EdgeId> {
285285
private final Set<Id> excluded;
286286
private final Set<Id> neighbors;
287287
private final long limit;
288+
private final AtomicInteger count;
288289

289290
public ConcurrentVerticesConsumer(Id sourceV, Set<Id> excluded, long limit,
290291
Set<Id> neighbors) {
291292
this.sourceV = sourceV;
292293
this.excluded = excluded;
293294
this.limit = limit;
294295
this.neighbors = neighbors;
296+
this.count = new AtomicInteger(0);
295297
}
296298

297-
private final AtomicInteger count = new AtomicInteger(0);
298-
299299
@Override
300300
public void accept(EdgeId edgeId) {
301301
if (this.limit != NO_LIMIT && count.get() >= this.limit) {

hugegraph-core/src/main/java/org/apache/hugegraph/util/Consumers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public void provide(V v) throws Throwable {
208208
try {
209209
this.queue.put(v);
210210
} catch (InterruptedException e) {
211-
LOG.warn("Interrupted while enqueue", e);
211+
LOG.warn("Interrupt while queuing QUEUE_END", e);
212212
}
213213
}
214214
}

0 commit comments

Comments
 (0)