Class: Tarantool::Request::ModuloShardProc

Inherits:
Object
  • Object
show all
Defined in:
lib/tarantool/shards_support.rb

Instance Method Summary collapse

Instance Method Details

#call(shard_values, shards_count, this) ⇒ Object



53
54
55
# File 'lib/tarantool/shards_support.rb', line 53

def call(shard_values, shards_count, this)
  shard_values[0] && shard_values[0] % shards_count
end