dispatcher: added rpc command dispatcher.hash
authorDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 20 May 2020 19:33:17 +0000 (21:33 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 20 May 2020 19:33:17 +0000 (21:33 +0200)
commitaac6c77cac36ea28897fcec539d750e8bf652d55
tree80eea307974a1d70deeadd08e00cc2e84615cce8
parent4a7c3af7095257fd2e32ce2e33d66346256abafb
dispatcher: added rpc command dispatcher.hash

- prototype: dispatcher.hash nslots val1 [val2]
- compute the hash id of the value and do modulo operation if first
parameter is not 0
- val2 is optional
src/modules/dispatcher/dispatch.h
src/modules/dispatcher/dispatcher.c