simple_hash rename to fc_simple_hash
parent
2d177ab262
commit
9159d9c24b
|
|
@ -240,7 +240,7 @@ struct idempotency_client_channel *idempotency_client_channel_get(
|
||||||
IdempotencyClientChannel *channel;
|
IdempotencyClientChannel *channel;
|
||||||
|
|
||||||
key_len = snprintf(key, sizeof(key), "%s_%u", server_ip, server_port);
|
key_len = snprintf(key, sizeof(key), "%s_%u", server_ip, server_port);
|
||||||
hash_code = simple_hash(key, key_len);
|
hash_code = fc_simple_hash(key, key_len);
|
||||||
bucket = channel_context.htable.buckets +
|
bucket = channel_context.htable.buckets +
|
||||||
hash_code % channel_context.htable.capacity;
|
hash_code % channel_context.htable.capacity;
|
||||||
previous = NULL;
|
previous = NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue