Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
metadata-collect-agent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
metadata-collect-agent
Commits
51bc37ba
Commit
51bc37ba
authored
Sep 08, 2020
by
Leo Le Bouter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add small ergonomic change from jm review
parent
c2b83bac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/main.rs
src/main.rs
+3
-3
No files found.
src/main.rs
View file @
51bc37ba
...
...
@@ -252,7 +252,7 @@ fn upload_to_erp5<R: Read + Send + 'static>(
.to_str
()
?
.parse
()
?
;
let
resp
=
client
let
_
resp
=
client
.post
(
doc_url
.to_owned
())
.multipart
(
multipart
::
Form
::
new
()
...
...
@@ -281,7 +281,7 @@ fn upload_to_erp5<R: Read + Send + 'static>(
params
.insert
(
"field_your_workflow_action"
,
"share_action"
);
params
.insert
(
"Base_callDialogMethod:method"
,
""
);
let
resp
=
client
.post
(
doc_url
.to_owned
())
.form
(
&
params
)
.send
()
?
;
let
_
resp
=
client
.post
(
doc_url
.to_owned
())
.form
(
&
params
)
.send
()
?
;
// workaround for ERP5 disappearing documents race condition bug
thread
::
sleep
(
Duration
::
from_secs
(
3
));
...
...
@@ -322,7 +322,7 @@ fn main() -> Result<()> {
let
ignored_dirs
=
m
.values_of
(
"ignored-dirs"
)
.unwrap_or
(
clap
::
Values
::
default
())
.map
(
|
v
|
PathBuf
::
from
(
v
)
)
.map
(
PathBuf
::
from
)
.collect
();
let
disk_partitions
=
psutil
::
disk
::
partitions_physical
()
?
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment