Skip to content

Commit e653b77

Browse files
committed
Add staleness comment
1 parent 8efd0a9 commit e653b77

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pc/user.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@ void user::parse_get_product_list( uint32_t itok )
297297

298298
// If the primary manager has no products, pull them from the secondary
299299
// manager instead.
300+
//
301+
// Warning: if the primary network is disconnected but the products still
302+
// exist in the primary manager's mapping (i.e. pythd hasn't restarted), the prices
303+
// returned from this endpoint will therefore be stale and will only be updated
304+
// when the primary network reconnects.
300305
pc::manager *mgr = sptr_;
301306
if ( sptr_->get_num_product() == 0 && sptr_->has_secondary() ) {
302307
mgr = sptr_->get_secondary();

0 commit comments

Comments
 (0)