-
Notifications
You must be signed in to change notification settings - Fork 122
fix[mono]: fix files-changed invalid after mr merged
#1097
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,12 +2,18 @@ use std::{ | |||||
| collections::{HashMap, HashSet}, | ||||||
| path::PathBuf, | ||||||
| str::FromStr, | ||||||
| sync::atomic::{AtomicUsize, Ordering}, | ||||||
| sync::{ | ||||||
| atomic::{AtomicUsize, Ordering}, | ||||||
| Arc, | ||||||
| }, | ||||||
| }; | ||||||
|
|
||||||
| use async_trait::async_trait; | ||||||
| use futures::{future::join_all, StreamExt}; | ||||||
| use tokio::sync::mpsc::{self, UnboundedReceiver}; | ||||||
| use tokio::sync::{ | ||||||
| mpsc::{self, UnboundedReceiver}, | ||||||
| Semaphore, | ||||||
| }; | ||||||
| use tokio_stream::wrappers::ReceiverStream; | ||||||
|
|
||||||
| use callisto::{mega_tree, raw_blob, sea_orm_active_enums::RefTypeEnum}; | ||||||
|
|
@@ -58,20 +64,37 @@ impl PackHandler for ImportRepo { | |||||
| ) -> Result<Option<Commit>, GitError> { | ||||||
| let storage = self.context.services.git_db_storage.clone(); | ||||||
| let mut entry_list = vec![]; | ||||||
| let semaphore = Arc::new(Semaphore::new(8)); | ||||||
|
||||||
| let semaphore = Arc::new(Semaphore::new(8)); | |
| let semaphore = Arc::new(Semaphore::new(SEMAPHORE_LIMIT)); |
Copilot
AI
Jun 5, 2025
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.
[nitpick] There are several commented-out blocks related to blob handling. Remove or restore this code to reduce clutter and improve readability.
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.
Typo in comment:
exceprtshould beexcept.