diff --git a/tensorflow_recommenders_addons/dynamic_embedding/core/kernels/redis_impl/redis_cluster_connection_pool.hpp b/tensorflow_recommenders_addons/dynamic_embedding/core/kernels/redis_impl/redis_cluster_connection_pool.hpp index 52b88eb77..15e17046e 100644 --- a/tensorflow_recommenders_addons/dynamic_embedding/core/kernels/redis_impl/redis_cluster_connection_pool.hpp +++ b/tensorflow_recommenders_addons/dynamic_embedding/core/kernels/redis_impl/redis_cluster_connection_pool.hpp @@ -172,8 +172,6 @@ class RedisWrapperenqueue([this, &cmd, &thread_context, i] { + network_worker_pool->enqueue([this, &cmd, thread_context, i] { return PipeExecRead(cmd, 3U, thread_context->buckets[i]); })); } @@ -1228,7 +1224,7 @@ every bucket has its own BucketContext for sending data---for locating reply- try { for (unsigned i = 0; i < storage_slice; ++i) { results.emplace_back( - network_worker_pool->enqueue([this, &cmd, &thread_context, i] { + network_worker_pool->enqueue([this, &cmd, thread_context, i] { return PipeExecWrite(cmd, 4U, thread_context->buckets[i]); })); } @@ -1330,7 +1326,7 @@ every bucket has its own BucketContext for sending data---for locating reply- try { for (unsigned i = 0; i < storage_slice; ++i) { results.emplace_back( - network_worker_pool->enqueue([this, &cmd, &thread_context, i] { + network_worker_pool->enqueue([this, &cmd, thread_context, i] { return PipeExecWrite(cmd, 6U, thread_context->buckets[i]); })); } @@ -1411,7 +1407,7 @@ every bucket has its own BucketContext for sending data---for locating reply- try { for (unsigned i = 0; i < storage_slice; ++i) { results.emplace_back( - network_worker_pool->enqueue([this, &cmd, &thread_context, i] { + network_worker_pool->enqueue([this, &cmd, thread_context, i] { return PipeExecWrite(cmd, 3U, thread_context->buckets[i]); })); }