fermyon / spin-rust-sdk

Spin SDK for Rust
https://developer.fermyon.com/spin/v2/rust-components
Apache License 2.0
11 stars 11 forks source link

Getting an integer return from REDIS::publish() #14

Open seungjin opened 8 months ago

seungjin commented 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.

dicej commented 8 months ago

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.