[hotfix] Fix mac build (#14075)

* .

* done?

* .

Co-authored-by: Alex Wu <alex@anyscale.com>
This commit is contained in:
Alex Wu
2021-02-14 14:26:51 -08:00
committed by GitHub
parent 9dc671ae02
commit 5636af8084
+1 -1
View File
@@ -1026,7 +1026,7 @@ void ReferenceCounter::PushToLocationSubscribers(ReferenceTable::iterator it) {
const auto callbacks = it->second.location_subscription_callbacks;
it->second.location_subscription_callbacks.clear();
it->second.location_version++;
for (const auto callback : callbacks) {
for (const auto &callback : callbacks) {
callback(it->second.locations, it->second.object_size, it->second.spilled_url,
it->second.spilled_node_id, it->second.location_version);
}