Skip to content

Commit e1ec19f

Browse files
committed
full-producer: fix function visibility
examples: fix compilation Change-Id: I0293d3a661353b49d8f006b1d48259dbf923c785
1 parent 5b5074a commit e1ec19f

File tree

4 files changed

+9
-357
lines changed

4 files changed

+9
-357
lines changed

Diff for: PSync/full-producer.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ class FullProducer
8383
return m_prefixes.getSeqNo(prefix);
8484
}
8585

86-
PSYNC_PUBLIC_WITH_TESTS_ELSE_PRIVATE:
8786
/**
8887
* @brief Adds a user node for synchronization
8988
*

Diff for: examples/full-sync-arbitrary.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ class Producer
5252
ndn::Name dataPrefix(userPrefix + "-" + ndn::to_string(i));
5353
m_nPublished[dataPrefix] = 0;
5454

55-
m_scheduler.scheduleEvent(ndn::time::milliseconds(m_rangeUniformRandom(m_rng)),
56-
[this, dataPrefix] {
57-
doUpdate(dataPrefix);
58-
});
55+
m_scheduler.schedule(ndn::time::milliseconds(m_rangeUniformRandom(m_rng)),
56+
[this, dataPrefix] {
57+
doUpdate(dataPrefix);
58+
});
5959
}
6060
}
6161

@@ -77,10 +77,10 @@ class Producer
7777
++m_nPublished[dataPrefix];
7878

7979
if (m_nPublished[dataPrefix] < m_maxNumPublish) {
80-
m_scheduler.scheduleEvent(ndn::time::milliseconds(m_rangeUniformRandom(m_rng)),
81-
[this, dataPrefix] {
82-
doUpdate(dataPrefix);
83-
});
80+
m_scheduler.schedule(ndn::time::milliseconds(m_rangeUniformRandom(m_rng)),
81+
[this, dataPrefix] {
82+
doUpdate(dataPrefix);
83+
});
8484
}
8585
}
8686

@@ -94,7 +94,7 @@ class Producer
9494

9595
private:
9696
ndn::Face m_face;
97-
ndn::util::Scheduler m_scheduler;
97+
ndn::Scheduler m_scheduler;
9898

9999
psync::FullProducerArbitrary m_fullProducer;
100100

Diff for: tests/bk-test-bloom-filter.cpp.disable

-100
This file was deleted.

Diff for: tests/bk-test-iblt.cpp.disable

-247
This file was deleted.

0 commit comments

Comments
 (0)