Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
Fixes rebuild bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Nine committed Mar 20, 2015
1 parent c7e3459 commit 5889a3b
Showing 1 changed file with 3 additions and 5 deletions.
Expand Up @@ -101,10 +101,8 @@ private void doWalkCollections(
edgeType = CpNamingUtils.getEdgeTypeFromCollectionName( collectionName );
}

Observable<String> edgeTypes = gm.getEdgeTypesFromSource(
new SimpleSearchEdgeType( applicationId, edgeType, null ) );

edgeTypes.flatMap( emittedEdgeType -> {
Observable<Edge> edges = gm.getEdgeTypesFromSource(
new SimpleSearchEdgeType( applicationId, edgeType, null ) ).flatMap( emittedEdgeType -> {

logger.debug( "Loading edges of type {} from node {}", edgeType, applicationId );

Expand Down Expand Up @@ -136,6 +134,6 @@ private void doWalkCollections(
}, 100 );

// wait for it to complete
edgeTypes.toBlocking().lastOrDefault( null ); // end foreach on edges
edges.toBlocking().lastOrDefault( null ); // end foreach on edges
}
}

0 comments on commit 5889a3b

Please sign in to comment.