Skip to content

Commit 14a0677

Browse files
author
ou.baharev
committed
fix typo in metod calling
Signed-off-by: ou.baharev <ou.baharev@tensor.ru>
1 parent 318dd4e commit 14a0677

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

core-dump-agent/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ async fn process_file(zip_path: &Path, bucket: &Bucket) {
292292

293293
let f = File::open(zip_path).expect("no file found");
294294

295-
match AdvisoryFileLock.try_lock(&f, FileLockMode::Shared) {
295+
match AdvisoryFileLock::try_lock(&f, FileLockMode::Shared) {
296296
Ok(_) => { /* If we can lock then we are ok */ }
297297
Err(e) => {
298298
let l_inotify = env::var("USE_INOTIFY")

core-dump-composer/src/events.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl CoreEvent {
8787
pub fn write_event(&self, eventlocation: &str) -> Result<(), anyhow::Error> {
8888
let full_path = format!("{}/{}-event.json", eventlocation, self.uuid);
8989
let file = File::create(full_path)?;
90-
AdvisoryFileLock.lock(&file, FileLockMode::Exclusive)?;
90+
AdvisoryFileLock::lock(&file, FileLockMode::Exclusive)?;
9191
serde_json::to_writer(&file, &self)?;
9292
file.unlock()?;
9393
Ok(())

core-dump-composer/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ fn handle(mut cc: config::CoreConfig) -> Result<(), anyhow::Error> {
131131
process::exit(1);
132132
}
133133
};
134-
AdvisoryFileLock.lock(&file, FileLockMode::Exclusive)?;
134+
AdvisoryFileLock::lock(&file, FileLockMode::Exclusive)?;
135135
let mut zip = ZipWriter::new(&file);
136136

137137
debug!(

0 commit comments

Comments
 (0)