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
0eb431c8
Commit
0eb431c8
authored
May 17, 2021
by
Jake Taylor
Browse files
Options
Downloads
Plain Diff
Merge branch 'hotfix/clientErrorSource' into 'release'
ClientError Source See merge request
!613
parents
495ee645
ecbafef5
No related branches found
No related tags found
1 merge request
!23
Release
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/version_vars.go
+9
-9
9 additions, 9 deletions
api/version_vars.go
network/follow.go
+45
-44
45 additions, 44 deletions
network/follow.go
with
54 additions
and
53 deletions
api/version_vars.go
+
9
−
9
View file @
0eb431c8
// Code generated by go generate; DO NOT EDIT.
// Code generated by go generate; DO NOT EDIT.
// This file was generated by robots at
// This file was generated by robots at
// 2021-05-14 10:
03:16.0139753
-0700 PDT m=+0.
207946701
// 2021-05-14 10:
40:35.967865
-0700 PDT m=+0.
035901934
package
api
package
api
const
GITVERSION
=
`
88379de9 Merge branch 'release' of gitlab.com:elixxir/client into XX-3278/fixTimestampSizeInE2eMessage
`
const
GITVERSION
=
`
7db53dd8 update go mod
`
const
SEMVER
=
"2.6.0"
const
SEMVER
=
"2.6.0"
const
DEPENDENCIES
=
`module gitlab.com/elixxir/client
const
DEPENDENCIES
=
`module gitlab.com/elixxir/client
...
@@ -24,18 +24,18 @@ require (
...
@@ -24,18 +24,18 @@ require (
github.com/spf13/jwalterweatherman v1.1.0
github.com/spf13/jwalterweatherman v1.1.0
github.com/spf13/viper v1.7.1
github.com/spf13/viper v1.7.1
gitlab.com/elixxir/bloomfilter v0.0.0-20200930191214-10e9ac31b228
gitlab.com/elixxir/bloomfilter v0.0.0-20200930191214-10e9ac31b228
gitlab.com/elixxir/comms v0.0.4-0.20210506
225017-37485f5ba063
gitlab.com/elixxir/comms v0.0.4-0.20210506
164842-7a132fdd895a
gitlab.com/elixxir/crypto v0.0.7-0.202105
06223047-3196e4301110
gitlab.com/elixxir/crypto v0.0.7-0.202105
14172618-7745b6e1c865
gitlab.com/elixxir/ekv v0.1.5
gitlab.com/elixxir/ekv v0.1.5
gitlab.com/elixxir/primitives v0.0.3-0.202105
04210415-34cf31c2816e
gitlab.com/elixxir/primitives v0.0.3-0.202105
14171434-8ec71ecbb058
gitlab.com/xx_network/comms v0.0.4-0.20210507215532-38ed97bd9365
gitlab.com/xx_network/comms v0.0.4-0.20210507215532-38ed97bd9365
gitlab.com/xx_network/crypto v0.0.5-0.20210504210244-9ddabbad25fd
gitlab.com/xx_network/crypto v0.0.5-0.20210504210244-9ddabbad25fd
gitlab.com/xx_network/primitives v0.0.4-0.20210504205835-db68f11de78a
gitlab.com/xx_network/primitives v0.0.4-0.20210504205835-db68f11de78a
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
golang.org/x/net v0.0.0-20210
226172049-e18ecbb05110
golang.org/x/net v0.0.0-20210
505214959-0714010a04ed
golang.org/x/sys v0.0.0-20210
4
031
61142-5e06dd20ab57
// indirect
golang.org/x/sys v0.0.0-20210
5
031
73754-0981d6026fa6
// indirect
google.golang.org/genproto v0.0.0-202
1
010
5202744-fe13368bc0e1
// indirect
google.golang.org/genproto v0.0.0-202010
30142918-24207fddd1c3
// indirect
google.golang.org/grpc v1.3
4
.0 // indirect
google.golang.org/grpc v1.3
7
.0 // indirect
google.golang.org/protobuf v1.26.0-rc.1
google.golang.org/protobuf v1.26.0-rc.1
gopkg.in/ini.v1 v1.62.0 // indirect
gopkg.in/ini.v1 v1.62.0 // indirect
)
)
...
...
This diff is collapsed.
Click to expand it.
network/follow.go
+
45
−
44
View file @
0eb431c8
...
@@ -23,12 +23,14 @@ package network
...
@@ -23,12 +23,14 @@ package network
// instance
// instance
import
(
import
(
"bytes"
"fmt"
"fmt"
jww
"github.com/spf13/jwalterweatherman"
jww
"github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/interfaces"
"gitlab.com/elixxir/client/interfaces"
"gitlab.com/elixxir/client/network/rounds"
"gitlab.com/elixxir/client/network/rounds"
pb
"gitlab.com/elixxir/comms/mixmessages"
pb
"gitlab.com/elixxir/comms/mixmessages"
"gitlab.com/elixxir/primitives/knownRounds"
"gitlab.com/elixxir/primitives/knownRounds"
"gitlab.com/elixxir/primitives/states"
"gitlab.com/xx_network/comms/connect"
"gitlab.com/xx_network/comms/connect"
"gitlab.com/xx_network/crypto/csprng"
"gitlab.com/xx_network/crypto/csprng"
"gitlab.com/xx_network/primitives/id"
"gitlab.com/xx_network/primitives/id"
...
@@ -162,50 +164,49 @@ func (m *manager) follow(report interfaces.ClientErrorReport, rng csprng.Source,
...
@@ -162,50 +164,49 @@ func (m *manager) follow(report interfaces.ClientErrorReport, rng csprng.Source,
// TODO: ClientErr needs to know the source of the error and it doesn't yet
// TODO: ClientErr needs to know the source of the error and it doesn't yet
// Iterate over ClientErrors for each RoundUpdate
// Iterate over ClientErrors for each RoundUpdate
//for _, update := range pollResp.Updates {
for
_
,
update
:=
range
pollResp
.
Updates
{
//
// // Ignore irrelevant updates
// Ignore irrelevant updates
// if update.State != uint32(states.COMPLETED) && update.State != uint32(states.FAILED) {
if
update
.
State
!=
uint32
(
states
.
COMPLETED
)
&&
update
.
State
!=
uint32
(
states
.
FAILED
)
{
// continue
continue
// }
}
//
// for _, clientErr := range update.ClientErrors {
for
_
,
clientErr
:=
range
update
.
ClientErrors
{
// // If this Client appears in the ClientError
// If this Client appears in the ClientError
// if bytes.Equal(clientErr.ClientId, m.Session.GetUser().TransmissionID.Marshal()) {
if
bytes
.
Equal
(
clientErr
.
ClientId
,
m
.
Session
.
GetUser
()
.
TransmissionID
.
Marshal
())
{
//
// // Obtain relevant NodeGateway information
// Obtain relevant NodeGateway information
// // TODO ???
nid
,
err
:=
id
.
Unmarshal
(
clientErr
.
Source
)
// nGw, err := m.Instance.GetNodeAndGateway(gwHost.GetId())
if
err
!=
nil
{
// if err != nil {
jww
.
ERROR
.
Printf
(
"Unable to get NodeID: %+v"
,
err
)
// jww.ERROR.Printf("Unable to get NodeGateway: %+v", err)
return
// return
}
// }
nGw
,
err
:=
m
.
Instance
.
GetNodeAndGateway
(
nid
)
// nid, err := nGw.Node.GetNodeId()
if
err
!=
nil
{
// if err != nil {
jww
.
ERROR
.
Printf
(
"Unable to get gateway: %+v"
,
err
)
// jww.ERROR.Printf("Unable to get NodeID: %+v", err)
return
// return
}
// }
//
// FIXME: Should be able to trigger proper type of round event
// // FIXME: Should be able to trigger proper type of round event
// FIXME: without mutating the RoundInfo. Signature also needs verified
// // FIXME: without mutating the RoundInfo. Signature also needs verified
// FIXME: before keys are deleted
// // FIXME: before keys are deleted
update
.
State
=
uint32
(
states
.
FAILED
)
// update.State = uint32(states.FAILED)
rnd
,
err
:=
m
.
Instance
.
GetWrappedRound
(
id
.
Round
(
update
.
ID
))
// rnd, err := m.Instance.GetWrappedRound(id.Round(update.ID))
if
err
!=
nil
{
// if err != nil {
jww
.
ERROR
.
Printf
(
"Failed to report client error: "
+
// jww.ERROR.Printf("Failed to report client error: "+
"Could not get round for event triggering: "
+
// "Could not get round for event triggering: "+
"Unable to get round %d from instance: %+v"
,
// "Unable to get round %d from instance: %+v",
id
.
Round
(
update
.
ID
),
err
)
// id.Round(update.ID), err)
break
// break
}
// }
m
.
Instance
.
GetRoundEvents
()
.
TriggerRoundEvent
(
rnd
)
// m.Instance.GetRoundEvents().TriggerRoundEvent(rnd)
//
// delete all existing keys and trigger a re-registration with the relevant Node
// // delete all existing keys and trigger a re-registration with the relevant Node
m
.
Session
.
Cmix
()
.
Remove
(
nid
)
// m.Session.Cmix().Remove(nid)
m
.
Instance
.
GetAddGatewayChan
()
<-
nGw
// m.Instance.GetAddGatewayChan() <- nGw
}
// }
}
// }
}
//}
}
}
// ---- Identity Specific Round Processing -----
// ---- Identity Specific Round Processing -----
...
...
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