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
Merge requests
!430
XX-4277 / Fix file transfer crashes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
XX-4277 / Fix file transfer crashes
XX-4277/fileTransferCrashDebug
into
release
Overview
0
Commits
22
Pipelines
0
Changes
8
Merged
Jono Wenger
requested to merge
XX-4277/fileTransferCrashDebug
into
release
2 years ago
Overview
0
Commits
22
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
version 6
version 15
4f465dd6
2 years ago
version 14
f19bd05b
2 years ago
version 13
8a3833c3
2 years ago
version 12
b912519f
2 years ago
version 11
f5d87011
2 years ago
version 10
310fb7ff
2 years ago
version 9
223718df
2 years ago
version 8
41a135fc
2 years ago
version 7
0bcf1292
2 years ago
version 6
3f5802fd
2 years ago
version 5
0667ec02
2 years ago
version 4
d2420664
2 years ago
version 3
9f18c2f5
2 years ago
version 2
371b6433
2 years ago
version 1
4c8901c5
2 years ago
release (base)
and
version 7
latest version
7bca379e
22 commits,
2 years ago
version 15
4f465dd6
21 commits,
2 years ago
version 14
f19bd05b
20 commits,
2 years ago
version 13
8a3833c3
19 commits,
2 years ago
version 12
b912519f
18 commits,
2 years ago
version 11
f5d87011
16 commits,
2 years ago
version 10
310fb7ff
14 commits,
2 years ago
version 9
223718df
13 commits,
2 years ago
version 8
41a135fc
12 commits,
2 years ago
version 7
0bcf1292
11 commits,
2 years ago
version 6
3f5802fd
10 commits,
2 years ago
version 5
0667ec02
6 commits,
2 years ago
version 4
d2420664
5 commits,
2 years ago
version 3
9f18c2f5
4 commits,
2 years ago
version 2
371b6433
2 commits,
2 years ago
version 1
4c8901c5
1 commit,
2 years ago
Show latest version
2 files
+
8
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
fileTransfer/e2e/wrapper.go
+
7
−
1
Options
@@ -8,6 +8,7 @@
package
e2e
import
(
jww
"github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/catalog"
"gitlab.com/elixxir/client/e2e"
"gitlab.com/elixxir/client/e2e/receive"
@@ -47,14 +48,19 @@ type e2eHandler interface {
// NewWrapper generates a new file transfer manager using E2E.
func
NewWrapper
(
receiveCB
ft
.
ReceiveCallback
,
p
Params
,
ft
ft
.
FileTransfer
,
user
ft
.
FtE2e
)
(
*
Wrapper
,
error
)
{
jww
.
INFO
.
Printf
(
"[FT] NewWrapper"
)
e
:=
user
.
GetE2E
()
jww
.
INFO
.
Printf
(
"[FT] GetE2E: %+v"
,
e
)
w
:=
&
Wrapper
{
receiveCB
:
receiveCB
,
ft
:
ft
,
p
:
p
,
myID
:
user
.
GetReceptionIdentity
()
.
ID
,
cmix
:
user
.
GetCmix
(),
e2e
:
user
.
GetE2E
()
,
e2e
:
e
,
}
jww
.
INFO
.
Printf
(
"[FT] before RegisterListener"
)
// Register listener to receive new file transfers
w
.
e2e
.
RegisterListener
(
&
id
.
ZeroUser
,
catalog
.
NewFileTransfer
,
&
listener
{
w
})
Loading