fix(NATSRS-008): CU-86akbh48z 4 review findings across 4 files - #118
flamingo[bot] wants to merge 4 commits into
Conversation
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| use std::time::Duration; |
There was a problem hiding this comment.
🦩 🟠 Benchmark file missing required Apache-2.0 copyright header
Added the standard NATS Authors Apache-2.0 license header block as the first lines of async-nats/benches/core_nats.rs, before the existing use std::time::Duration; statement, matching the header format used in other repo files (async-nats/tests/jetstream_tests.rs, nats/src/header.rs, etc.). No other lines were modified.
🤖 Prompt for AI agents
In async-nats/benches/core_nats.rs around line 1, review and complete this code-review fix: Benchmark file missing required Apache-2.0 copyright header.
What the draft fix changed: Added the standard NATS Authors Apache-2.0 license header block as the first lines of async-nats/benches/core_nats.rs, before the existing `use std::time::Duration;` statement, matching the header format used in other repo files (async-nats/tests/jetstream_tests.rs, nats/src/header.rs, etc.). No other lines were modified.
Verify the change is correct and complete; do not refactor unrelated code.
fix confidence: 🟢 92 high — react 👍/👎 to teach the reviewer
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| use quicli::prelude::*; |
There was a problem hiding this comment.
🦩 🟠 nats-box example main.rs is missing the Apache-2.0 copyright header
Added the standard Apache-2.0 "Copyright 20XX-20XX The NATS Authors" license header block at the very top of nats/examples/nats-box/main.rs, before the existing use statements, matching the format used in other files in the crate (e.g., nats/src/client.rs). The exact year range (2020-2024) is a reasonable estimate since I cannot verify the file's actual creation date; a complete fix may require adjusting the start year to match the file's true history.
🤖 Prompt for AI agents
In nats/examples/nats-box/main.rs around line 1, review and complete this code-review fix: nats-box example main.rs is missing the Apache-2.0 copyright header.
What the draft fix changed: Added the standard Apache-2.0 "Copyright 20XX-20XX The NATS Authors" license header block at the very top of `nats/examples/nats-box/main.rs`, before the existing `use` statements, matching the format used in other files in the crate (e.g., `nats/src/client.rs`). The exact year range (2020-2024) is a reasonable estimate since I cannot verify the file's actual creation date; a complete fix may require adjusting the start year to match the file's true history.
Verify the change is correct and complete; do not refactor unrelated code.
fix confidence: 🟡 85 medium — react 👍/👎 to teach the reviewer
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| #[cfg(feature = "aws-lc-rs")] |
There was a problem hiding this comment.
🦩 🟠 crypto.rs missing Apache-2.0 license header
Added the standard NATS Authors Apache-2.0 license header block as the first lines of async-nats/src/crypto.rs, matching the required NATSRS-008 format, before the existing cfg attributes and use statements. No other content was modified.
🤖 Prompt for AI agents
In async-nats/src/crypto.rs around line 1, review and complete this code-review fix: crypto.rs missing Apache-2.0 license header.
What the draft fix changed: Added the standard NATS Authors Apache-2.0 license header block as the first lines of async-nats/src/crypto.rs, matching the required NATSRS-008 format, before the existing cfg attributes and use statements. No other content was modified.
Verify the change is correct and complete; do not refactor unrelated code.
fix confidence: 🟢 90 high — react 👍/👎 to teach the reviewer
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| use serde::{Deserialize, Serialize}; |
There was a problem hiding this comment.
🦩 🟠 serde-json example missing Apache-2.0 copyright header
Added the standard Apache-2.0 "Copyright 2020-2022 The NATS Authors" license header block at the top of nats/examples/serde-json/main.rs, matching the format used in nats/src/connect.rs and other .rs files in the codebase, before the existing use serde::{Deserialize, Serialize}; line. The exact copyright year range is unverified against this specific file's history, but follows the pattern seen in sibling files.
🤖 Prompt for AI agents
In nats/examples/serde-json/main.rs around line 1, review and complete this code-review fix: serde-json example missing Apache-2.0 copyright header.
What the draft fix changed: Added the standard Apache-2.0 "Copyright 2020-2022 The NATS Authors" license header block at the top of nats/examples/serde-json/main.rs, matching the format used in nats/src/connect.rs and other .rs files in the codebase, before the existing `use serde::{Deserialize, Serialize};` line. The exact copyright year range is unverified against this specific file's history, but follows the pattern seen in sibling files.
Verify the change is correct and complete; do not refactor unrelated code.
fix confidence: 🟡 85 medium — react 👍/👎 to teach the reviewer
Closes 4 review findings across 4 files.
Draft — this is a starting point, not a finished change. The fix required judgment, so read it before trusting it.
async-nats/benches/core_nats.rs:1nats/examples/nats-box/main.rs:1async-nats/src/crypto.rs:1nats/examples/serde-json/main.rs:1What changed — and what was deliberately left — is explained per finding as inline review comments on the lines each finding touched.
Run: https://product-hub.flamingo.so/admin/code-review
Run id:
06b1d724-91f9-455e-9eef-4cda91351dbaMerging this PR is recorded as acceptance of the rule that produced it;
closing it unmerged is recorded as rejection. Both feed rule health, so
closing a wrong suggestion is useful rather than merely tidy.
ClickUp task: CU-86akbh48z NATS async-nats and CI review findings (10 PRs)