Skip to content

Commit d9a8dcb

Browse files
Fixes API test's hanging issues. As Data manager caches on put, data getter gets a cached response from Data manager on Get(). (Thanks to Mahmoud for explanation)
1 parent d2253ff commit d9a8dcb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/maidsafe/detail/session_getter.cc

+4-1
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ routing::Functors SessionGetter::InitialiseRoutingCallbacks() {
6161
public_pmid_helper_.AddEntry(std::move(future_key), give_key);
6262
};
6363

64+
// Required to pick cached messages
6465
functors.typed_message_and_caching.single_to_single.message_received =
65-
[this](const routing::SingleToSingleMessage& /*message*/) {};
66+
[this](const routing::SingleToSingleMessage& message) {
67+
data_getter_->HandleMessage(message);
68+
};
6669

6770
// TODO(Prakash) fix routing asserts for clients so client need not to provide callbacks for all
6871
// functors

0 commit comments

Comments
 (0)