Skip to content

Commit c5af4d3

Browse files
committed
Add staleness comment
1 parent 418cc89 commit c5af4d3

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
@@ -301,6 +301,11 @@ void user::parse_get_product_list( uint32_t itok )
301301

302302
// If the primary manager has no products, pull them from the secondary
303303
// manager instead.
304+
//
305+
// Warning: if the primary network is disconnected but the products still
306+
// exist in the primary manager's mapping (i.e. pythd hasn't restarted), the prices
307+
// returned from this endpoint will therefore be stale and will only be updated
308+
// when the primary network reconnects.
304309
pc::manager *mgr = sptr_;
305310
if ( sptr_->get_num_product() == 0 && sptr_->has_secondary() ) {
306311
mgr = sptr_->get_secondary();

0 commit comments

Comments
 (0)