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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
59f7d30f
Commit
59f7d30f
authored
Dec 29, 2021
by
Benjamin Wenger
Browse files
Options
Downloads
Patches
Plain Diff
removed some spammy prints to logs
parent
64cd040a
No related branches found
No related tags found
1 merge request
!117
Release
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
groupChat/receive.go
+2
-2
2 additions, 2 deletions
groupChat/receive.go
single/receiveResponse.go
+1
-1
1 addition, 1 deletion
single/receiveResponse.go
single/reception.go
+2
-2
2 additions, 2 deletions
single/reception.go
storage/edge/edge.go
+0
-1
0 additions, 1 deletion
storage/edge/edge.go
with
5 additions
and
6 deletions
groupChat/receive.go
+
2
−
2
View file @
59f7d30f
...
...
@@ -42,14 +42,14 @@ func (m Manager) receive(rawMsgs chan message.Receive, stop *stoppable.Single) {
stop
.
ToStopped
()
return
case
receiveMsg
:=
<-
rawMsgs
:
jww
.
DEBUG
.
Print
(
"Group message reception received cMix message."
)
jww
.
TRACE
.
Print
(
"Group message reception received cMix message."
)
// Attempt to read the message
g
,
msgID
,
timestamp
,
senderID
,
msg
,
noFpMatch
,
err
:=
m
.
readMessage
(
receiveMsg
)
if
err
!=
nil
{
if
noFpMatch
{
jww
.
DEBUG
.
Printf
(
"Received message not for group chat: %+v"
,
jww
.
TRACE
.
Printf
(
"Received message not for group chat: %+v"
,
err
)
}
else
{
jww
.
WARN
.
Printf
(
"Group message reception failed to read "
+
...
...
This diff is collapsed.
Click to expand it.
single/receiveResponse.go
+
1
−
1
View file @
59f7d30f
...
...
@@ -33,7 +33,7 @@ func (m *Manager) receiveResponseHandler(rawMessages chan message.Receive,
stop
.
ToStopped
()
return
case
msg
:=
<-
rawMessages
:
jww
.
DEBUG
.
Printf
(
"Received CMIX message; checking if it is a "
+
jww
.
TRACE
.
Printf
(
"Received CMIX message; checking if it is a "
+
"single-use response."
)
// Process CMIX message
...
...
This diff is collapsed.
Click to expand it.
single/reception.go
+
2
−
2
View file @
59f7d30f
...
...
@@ -31,7 +31,7 @@ func (m *Manager) receiveTransmissionHandler(rawMessages chan message.Receive,
stop
.
ToStopped
()
return
case
msg
:=
<-
rawMessages
:
jww
.
DEBUG
.
Printf
(
"Received CMIX message; checking if it is a "
+
jww
.
TRACE
.
Printf
(
"Received CMIX message; checking if it is a "
+
"single-use transmission."
)
// Check if message is a single-use transmit message
...
...
@@ -39,7 +39,7 @@ func (m *Manager) receiveTransmissionHandler(rawMessages chan message.Receive,
if
fp
!=
cmixMsg
.
GetKeyFP
()
{
// If the verification fails, then ignore the message as it is
// likely garbled or for a different protocol
jww
.
INFO
.
Print
(
"Failed to read single-use CMIX message: "
+
jww
.
TRACE
.
Print
(
"Failed to read single-use CMIX message: "
+
"fingerprint verification failed."
)
continue
}
...
...
This diff is collapsed.
Click to expand it.
storage/edge/edge.go
+
0
−
1
View file @
59f7d30f
...
...
@@ -177,7 +177,6 @@ func (s *Store) Check(identity *id.ID, identityFP []byte, messageContents []byte
}
for
_
,
preimage
:=
range
preimages
{
jww
.
INFO
.
Printf
(
"checking ifp: %v, msg: %v, preimage %v"
,
identityFP
,
messageContents
,
preimage
)
if
fingerprint2
.
CheckIdentityFP
(
identityFP
,
messageContents
,
preimage
.
Data
)
{
return
true
,
true
,
preimage
}
...
...
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