spinframework / spinframework/spin-rust-sdk
Getting an integer return from REDIS::publish()
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 35
- Forks
- 23
- Avg merge
- 37m
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with wit/redis.wit at line 19 and inspect the publish entry point and its current Result<(), Error> return type. Compare the expected behavior with redis-cli, where publish reports the number of nodes receiving the message. Done means the publish operation exposes that integer while preserving error handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- redis, rust
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100