Open seungjin opened 8 months ago
https://github.com/fermyon/spin-rust-sdk/blob/1e9cc89ee7309e477d20bcfe0af730e687934695/wit/redis.wit#L19 Currently .publish returns Result<(), Error>. But if this can return an integer value instead of () would be better like redis-cli. redis-cli returns an integer how many nodes get the published msg.
This is an enhancement.
Sounds good to me. As a workaround, you should be able to use the general-purpose execute method instead of publish and get the result that way.
execute
publish
https://github.com/fermyon/spin-rust-sdk/blob/1e9cc89ee7309e477d20bcfe0af730e687934695/wit/redis.wit#L19 Currently .publish returns Result<(), Error>. But if this can return an integer value instead of () would be better like redis-cli. redis-cli returns an integer how many nodes get the published msg.
This is an enhancement.