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
8ddb19ef
Commit
8ddb19ef
authored
2 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Add debugs to FT bindings
parent
53ef1591
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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
bindings/fileTransfer.go
+3
-1
3 additions, 1 deletion
bindings/fileTransfer.go
fileTransfer/manager.go
+1
-1
1 addition, 1 deletion
fileTransfer/manager.go
with
4 additions
and
2 deletions
bindings/fileTransfer.go
+
3
−
1
View file @
8ddb19ef
...
...
@@ -9,6 +9,7 @@ package bindings
import
(
"encoding/json"
jww
"github.com/spf13/jwalterweatherman"
"time"
"gitlab.com/elixxir/client/fileTransfer"
...
...
@@ -127,7 +128,7 @@ type FileTransferReceiveProgressCallback interface {
// - paramsJSON - JSON marshalled fileTransfer.Params
func
InitFileTransfer
(
e2eID
int
,
receiveFileCallback
ReceiveFileCallback
,
e2eFileTransferParamsJson
,
fileTransferParamsJson
[]
byte
)
(
*
FileTransfer
,
error
)
{
jww
.
INFO
.
Printf
(
"Calling InitFileTransfer()"
)
// Get user from singleton
user
,
err
:=
e2eTrackerSingleton
.
get
(
e2eID
)
if
err
!=
nil
{
...
...
@@ -165,6 +166,7 @@ func InitFileTransfer(e2eID int, receiveFileCallback ReceiveFileCallback,
}
// Add file transfer processes to API services tracking
jww
.
INFO
.
Printf
(
"FT PROCESS IS STARTING HERE AT InitFileTransfer"
)
err
=
user
.
api
.
AddService
(
m
.
StartProcesses
)
if
err
!=
nil
{
return
nil
,
err
...
...
This diff is collapsed.
Click to expand it.
fileTransfer/manager.go
+
1
−
1
View file @
8ddb19ef
...
...
@@ -215,7 +215,7 @@ func NewManager(params Params, user FtE2e) (FileTransfer, error) {
// StartProcesses starts the sending threads. Adheres to the xxdk.Service type.
func
(
m
*
manager
)
StartProcesses
()
(
stoppable
.
Stoppable
,
error
)
{
// Construct stoppables
sendStoppable
:=
stoppable
.
NewMulti
(
sendThread
Stoppable
Name
)
sendStoppable
:=
stoppable
.
NewMulti
(
workerPool
Stoppable
)
batchBuilderStop
:=
stoppable
.
NewSingle
(
batchBuilderThreadStoppable
)
// Start sending threads
...
...
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