Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jabis Sevón
/
mmjab
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
9969194f
authored
2025-01-25 19:29:59 +0100
by
Jabis Sevón
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fileinfo and posts
1 parent
b57de7ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
src/main.rs
src/main.rs
View file @
9969194
...
...
@@ -238,7 +238,7 @@ async fn clean_files_batch(
let
rows
=
client
.query
(
query
,
&
[
&
millisecond_epoch
,
&
offset
,
&
limit
])
.await
.context
(
"Failed to fetch file
info rows"
)
?
;
.context
(
"Failed to fetch fileinfo rows"
)
?
;
let
mut
more_results
=
false
;
...
...
@@ -309,7 +309,7 @@ async fn delete_file_info_rows(
trace!
(
"Params: {:#?}"
,
&
millisecond_epoch
);
if
dry_run
{
info!
(
"[DRY RUN] Would delete
file info
rows older than {}"
,
"[DRY RUN] Would delete
`fileinfo`
rows older than {}"
,
millisecond_epoch
);
return
Ok
(());
...
...
@@ -317,8 +317,8 @@ async fn delete_file_info_rows(
let
result
=
client
.execute
(
query
,
&
[
&
millisecond_epoch
])
.await
.context
(
"Failed to delete
file info
rows"
)
?
;
info!
(
"Removed {} file
information
rows"
,
result
);
.context
(
"Failed to delete
`fileinfo`
rows"
)
?
;
info!
(
"Removed {} file
info
rows"
,
result
);
Ok
(())
}
...
...
@@ -331,7 +331,7 @@ async fn delete_post_rows(client: &Client, millisecond_epoch: i64, dry_run: bool
trace!
(
"Params: {:#?}"
,
&
millisecond_epoch
);
if
dry_run
{
info!
(
"[DRY RUN] Would delete
post
rows older than {}"
,
"[DRY RUN] Would delete
`posts`
rows older than {}"
,
millisecond_epoch
);
return
Ok
(());
...
...
@@ -339,7 +339,7 @@ async fn delete_post_rows(client: &Client, millisecond_epoch: i64, dry_run: bool
let
result
=
client
.execute
(
query
,
&
[
&
millisecond_epoch
])
.await
.context
(
"Failed to delete
post
rows"
)
?
;
.context
(
"Failed to delete
`posts`
rows"
)
?
;
info!
(
"Removed {} post rows"
,
result
);
Ok
(())
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment