Skip to content
Snippets Groups Projects
Commit 0eb431c8 authored by Jake Taylor's avatar Jake Taylor :lips:
Browse files

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!23Release
// 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.20210506225017-37485f5ba063 gitlab.com/elixxir/comms v0.0.4-0.20210506164842-7a132fdd895a
gitlab.com/elixxir/crypto v0.0.7-0.20210506223047-3196e4301110 gitlab.com/elixxir/crypto v0.0.7-0.20210514172618-7745b6e1c865
gitlab.com/elixxir/ekv v0.1.5 gitlab.com/elixxir/ekv v0.1.5
gitlab.com/elixxir/primitives v0.0.3-0.20210504210415-34cf31c2816e gitlab.com/elixxir/primitives v0.0.3-0.20210514171434-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-20210226172049-e18ecbb05110 golang.org/x/net v0.0.0-20210505214959-0714010a04ed
golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57 // indirect golang.org/x/sys v0.0.0-20210503173754-0981d6026fa6 // indirect
google.golang.org/genproto v0.0.0-20210105202744-fe13368bc0e1 // indirect google.golang.org/genproto v0.0.0-20201030142918-24207fddd1c3 // indirect
google.golang.org/grpc v1.34.0 // indirect google.golang.org/grpc v1.37.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
) )
......
...@@ -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 -----
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment