mirror of
https://github.com/wassname/ray.git
synced 2026-07-19 11:27:32 +08:00
remove UniqueIDHasher (#1957)
* remove UniqueIDHasher * Format the change * remove unused line * Fix format * fix lint error * fix linting whitespace
This commit is contained in:
@@ -195,8 +195,8 @@ static PyObject *PyObjectID_richcompare(PyObjectID *self,
|
||||
static PyObject *PyObjectID_redis_shard_hash(PyObjectID *self) {
|
||||
/* NOTE: The hash function used here must match the one in get_redis_context
|
||||
* in src/common/state/redis.cc. Changes to the hash function should only be
|
||||
* made through UniqueIDHasher in src/common/common.h */
|
||||
UniqueIDHasher hash;
|
||||
* made through std::hash in src/common/common.h */
|
||||
std::hash<ray::UniqueID> hash;
|
||||
return PyLong_FromSize_t(hash(self->object_id));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user