This commit is contained in:
尹吉欢
2018-03-02 13:39:18 +08:00
parent 42c4a28a66
commit 704cd6cd45
@@ -61,7 +61,7 @@ public class DistrictInfoJob implements SimpleJob{
DBCollection collection = seaweedMongoTemplate.getCollection("seaweed");
DBCursor cursor = collection.find(new BasicDBObject("cat", "district").append("status", 0),
new BasicDBObject("city", 1).append("region", 1).append("name", 1)).addOption(Bytes.QUERYOPTION_NOTIMEOUT);
final Semaphore semaphore = new Semaphore(5);
final Semaphore semaphore = new Semaphore(10);
while (cursor.hasNext()) {
final DBObject data = cursor.next();
try {