Skip to content

Conversation

@G8XSU
Copy link
Contributor

@G8XSU G8XSU commented Sep 19, 2023

Depends on #11

Motivation: Such checks are best performed in backend than
having client checking empty or null value. This is also in-line
with more critical requirement for functioning of NotFound
introduced by MonitorUpdatingPersister Design.
Even though there are some popular KVStore's which do not throw
such exception on keyNotFound such as AWS-DDB (arguably the most popular one),
we can still figure out that key didn't exist if value was
returned as null or by similar means in other stores.
/// The write will succeed if the current DB version against the `key` is the same as in the request.
/// When initiating a `PutObjectRequest`, the request should contain their client-side `version`
/// for that key-value.
/// Clients are expected to store a `version` against every `key`.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto-gen changes due to prost-build downgrade.

reqwest = { version = "0.11.13", features = ["rustls-tls"] }

[build-dependencies]
prost-build = { version = "0.11.3" }
Copy link
Contributor

@tnull tnull Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think a downgrade of prost-build is necessary here, but to address #4 we should define an MSRV, document it in README, and pin the downstream dependency in CI to assert we can build against it.

If we go for 1.63.0, adding an MSRV CI job that runs this should do the trick:

cargo update -p petgraph --precise "0.6.3" --verbose

(See for example how LDK Node's CI does it based on an msrv flag: https://github.com/lightningdevkit/ldk-node/blob/db1b7dcc3415ac00455913b48d4b7b8ec6c2e617/.github/workflows/build.yml#L42-L45)

@G8XSU G8XSU closed this Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants