Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
6e88a678
Commit
6e88a678
authored
2 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Add more debugs
parent
1a7f0aa0
No related branches found
No related tags found
2 merge requests
!510
Release
,
!398
Add debug log for file transfer not quitting
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fileTransfer/send.go
+1
-0
1 addition, 0 deletions
fileTransfer/send.go
stoppable/multi.go
+2
-2
2 additions, 2 deletions
stoppable/multi.go
with
3 additions
and
2 deletions
fileTransfer/send.go
+
1
−
0
View file @
6e88a678
...
@@ -63,6 +63,7 @@ func (m *manager) startSendingWorkerPool(multiStop *stoppable.Multi) {
...
@@ -63,6 +63,7 @@ func (m *manager) startSendingWorkerPool(multiStop *stoppable.Multi) {
for
i
:=
0
;
i
<
workerPoolThreads
;
i
++
{
for
i
:=
0
;
i
<
workerPoolThreads
;
i
++
{
stop
:=
stoppable
.
NewSingle
(
sendThreadStoppableName
+
strconv
.
Itoa
(
i
))
stop
:=
stoppable
.
NewSingle
(
sendThreadStoppableName
+
strconv
.
Itoa
(
i
))
go
m
.
sendingThread
(
stop
)
go
m
.
sendingThread
(
stop
)
jww
.
INFO
.
Printf
(
"Adding stoppable %s"
,
stop
.
Name
())
multiStop
.
Add
(
stop
)
multiStop
.
Add
(
stop
)
}
}
...
...
This diff is collapsed.
Click to expand it.
stoppable/multi.go
+
2
−
2
View file @
6e88a678
...
@@ -121,8 +121,8 @@ func (m *Multi) Close() error {
...
@@ -121,8 +121,8 @@ func (m *Multi) Close() error {
m
.
once
.
Do
(
func
()
{
m
.
once
.
Do
(
func
()
{
var
wg
sync
.
WaitGroup
var
wg
sync
.
WaitGroup
jww
.
TRACE
.
Printf
(
"Sending on quit channel to multi stoppable %q."
,
jww
.
INFO
.
Printf
(
"Sending on quit channel to multi stoppable %q
with processes: %v
."
,
m
.
Name
())
m
.
Name
()
,
m
.
GetRunningProcesses
()
)
m
.
mux
.
Lock
()
m
.
mux
.
Lock
()
// Attempt to stop each stoppable in its own goroutine
// Attempt to stop each stoppable in its own goroutine
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment