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
3c910849
Commit
3c910849
authored
2 years ago
by
Benjamin Wenger
Browse files
Options
Downloads
Patches
Plain Diff
fixed a bug in broadcast and fixed missing functions on the interface
parent
0a1932b2
No related branches found
No related tags found
5 merge requests
!510
Release
,
!419
rewrote the health tracker to both consider if there are waiting rounds and...
,
!371
[Channel RSAtoPrivate] Implement Reverse Asymmetric in Client/Broadcast
,
!354
Channels impl
,
!340
Project/channels
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
broadcast/processor.go
+1
-1
1 addition, 1 deletion
broadcast/processor.go
channels/interface.go
+9
-0
9 additions, 0 deletions
channels/interface.go
with
10 additions
and
1 deletion
broadcast/processor.go
+
1
−
1
View file @
3c910849
...
@@ -56,7 +56,7 @@ func (p *processor) Process(msg format.Message,
...
@@ -56,7 +56,7 @@ func (p *processor) Process(msg format.Message,
jww
.
ERROR
.
Printf
(
"Unrecognized broadcast method %d"
,
p
.
method
)
jww
.
ERROR
.
Printf
(
"Unrecognized broadcast method %d"
,
p
.
method
)
}
}
go
p
.
cb
(
payload
,
receptionID
,
round
)
p
.
cb
(
payload
,
receptionID
,
round
)
}
}
// String returns a string identifying the symmetricProcessor for debugging purposes.
// String returns a string identifying the symmetricProcessor for debugging purposes.
...
...
This diff is collapsed.
Click to expand it.
channels/interface.go
+
9
−
0
View file @
3c910849
...
@@ -25,6 +25,15 @@ import (
...
@@ -25,6 +25,15 @@ import (
var
ValidForever
=
time
.
Duration
(
math
.
MaxInt64
)
var
ValidForever
=
time
.
Duration
(
math
.
MaxInt64
)
type
Manager
interface
{
type
Manager
interface
{
// JoinChannel joins the given channel. It will fail if the channel has
// already been joined.
JoinChannel
(
channel
*
cryptoBroadcast
.
Channel
)
error
// LeaveChannel leaves the given channel. It will return an error if the
// channel was not previously joined.
LeaveChannel
(
channelID
*
id
.
ID
)
error
// SendGeneric is used to send a raw message over a channel. In general, it
// SendGeneric is used to send a raw message over a channel. In general, it
// should be wrapped in a function which defines the wire protocol
// should be wrapped in a function which defines the wire protocol
// If the final message, before being sent over the wire, is too long, this will
// If the final message, before being sent over the wire, is too long, this will
...
...
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