remove UniqueIDHasher (#1957)

* remove UniqueIDHasher

* Format the change

* remove unused line

* Fix format

* fix lint error

* fix linting whitespace
This commit is contained in:
eric-jj
2018-04-30 06:31:23 -07:00
committed by Philipp Moritz
parent 47bc4c3009
commit 34bc6ce6ea
36 changed files with 116 additions and 138 deletions
+2 -2
View File
@@ -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));
}