KaymeKaydex / go-vshard-router

go vshard-router implementation for tarantool
MIT License
21 stars 3 forks source link

Impossible to call function with several results #11

Closed hackallcode closed 7 months ago

hackallcode commented 7 months ago

I have a function that does one action: return 1, 2. So I call it by RouterCallImpl and it returns the error cant get call cause call impl timeout.

hackallcode commented 7 months ago

The same error occurs if the function does return nil, 2

hackallcode commented 7 months ago

The problem is that the RouterCallImpl expects there to be 2 values in the result, but vshard.storage.call returns true/false + all parameters from the function (zero parameters also is correct). The example above returns true, 1, 2, 3. If you create a function with return, the result will only be true.

KaymeKaydex commented 7 months ago

13 it seems this pr should solve the problem