-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependencies #708
Update dependencies #708
Conversation
Caution Review failedThe pull request is closed. """ Walkthrough今回の変更は、 Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (5)
📒 Files selected for processing (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (4)
nusamai-citygml/Cargo.toml
is excluded by!**/*.toml
nusamai-gpkg/Cargo.toml
is excluded by!**/*.toml
nusamai-projection/Cargo.toml
is excluded by!**/*.toml
nusamai/Cargo.toml
is excluded by!**/*.toml
📒 Files selected for processing (1)
nusamai/tests/pipeline.rs
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: test
- GitHub Check: build
🔇 Additional comments (1)
nusamai/tests/pipeline.rs (1)
43-43
: ローカルな乱数生成器の導入についてスレッドセーフティとテストの再現性の観点から、グローバルな乱数生成器の代わりにローカルなインスタンスを使用する方針は適切です。
for _i in 0..100 { | ||
feedback.ensure_not_canceled()?; | ||
std::thread::sleep(std::time::Duration::from_millis( | ||
(5.0 + random::<f32>() * 10.0) as u64, | ||
(5.0 + rng.random::<f32>() * 10.0) as u64, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
乱数生成の一貫性について
DummySource
での変更は適切ですが、DummySink
の実装でも同様の変更が必要です。コードベース全体で一貫した乱数生成アプローチを採用することを推奨します。
以下の変更を提案します:
impl DataSink for DummySink {
fn run(&mut self, upstream: Receiver, feedback: &Feedback, _schema: &Schema) -> Result<()> {
+ let mut rng = rand::rng();
for parcel in upstream {
feedback.ensure_not_canceled()?;
std::thread::sleep(std::time::Duration::from_millis(
- (5.0 + random::<f32>() * 20.0) as u64,
+ (5.0 + rng.random::<f32>() * 20.0) as u64,
));
Also applies to: 111-113
3e028f0
to
01443f9
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ Additional details and impacted files
📢 Thoughts on this report? Let us know! |
01443f9
to
7ba1998
Compare
No description provided.