Skip to content
Snippets Groups Projects
Commit e0a882b6 authored by Jonah Husson's avatar Jonah Husson
Browse files

Fix cmix package

parent 098df3d6
No related branches found
No related tags found
3 merge requests!510Release,!207WIP: Client Restructure,!203Symmetric broadcast
...@@ -15,11 +15,11 @@ import ( ...@@ -15,11 +15,11 @@ import (
"gitlab.com/elixxir/client/cmix/address" "gitlab.com/elixxir/client/cmix/address"
"gitlab.com/elixxir/client/cmix/gateway" "gitlab.com/elixxir/client/cmix/gateway"
"gitlab.com/elixxir/client/cmix/health" "gitlab.com/elixxir/client/cmix/health"
"gitlab.com/elixxir/client/cmix/rounds"
"gitlab.com/elixxir/client/cmix/identity" "gitlab.com/elixxir/client/cmix/identity"
"gitlab.com/elixxir/client/cmix/message" "gitlab.com/elixxir/client/cmix/message"
"gitlab.com/elixxir/client/cmix/nodes" "gitlab.com/elixxir/client/cmix/nodes"
"gitlab.com/elixxir/client/cmix/pickup" "gitlab.com/elixxir/client/cmix/pickup"
"gitlab.com/elixxir/client/cmix/rounds"
"gitlab.com/elixxir/client/event" "gitlab.com/elixxir/client/event"
"gitlab.com/elixxir/client/stoppable" "gitlab.com/elixxir/client/stoppable"
"gitlab.com/elixxir/client/storage" "gitlab.com/elixxir/client/storage"
...@@ -65,7 +65,7 @@ type client struct { ...@@ -65,7 +65,7 @@ type client struct {
message.Handler message.Handler
nodes.Registrar nodes.Registrar
rounds.Retriever rounds.Retriever
rounds.Pickup pickup.Pickup
address.Space address.Space
identity.Tracker identity.Tracker
health.Monitor health.Monitor
...@@ -158,8 +158,8 @@ func NewManager(params Params, comms *commClient.Comms, session storage.Session, ...@@ -158,8 +158,8 @@ func NewManager(params Params, comms *commClient.Comms, session storage.Session,
c.session.GetReceptionID()) c.session.GetReceptionID())
// Set up round handler // Set up round handler
c.Pickup = rounds.NewPickup( c.Pickup = pickup.NewPickup(
params.Rounds, c.Handler.GetMessageReceptionChannel(), c.Sender, params.Pickup, c.Handler.GetMessageReceptionChannel(), c.Sender,
c.Retriever, c.rng, c.instance, c.session) c.Retriever, c.rng, c.instance, c.session)
// Add the identity system // Add the identity system
......
...@@ -3,9 +3,9 @@ package cmix ...@@ -3,9 +3,9 @@ package cmix
import ( import (
"encoding/base64" "encoding/base64"
"encoding/json" "encoding/json"
"gitlab.com/elixxir/client/cmix/rounds"
"gitlab.com/elixxir/client/cmix/message" "gitlab.com/elixxir/client/cmix/message"
"gitlab.com/elixxir/client/cmix/pickup" "gitlab.com/elixxir/client/cmix/pickup"
"gitlab.com/elixxir/client/cmix/rounds"
"gitlab.com/elixxir/client/stoppable" "gitlab.com/elixxir/client/stoppable"
"gitlab.com/elixxir/primitives/excludedRounds" "gitlab.com/elixxir/primitives/excludedRounds"
"gitlab.com/xx_network/primitives/id" "gitlab.com/xx_network/primitives/id"
...@@ -51,6 +51,7 @@ type Params struct { ...@@ -51,6 +51,7 @@ type Params struct {
ReplayRequests bool ReplayRequests bool
Rounds rounds.Params Rounds rounds.Params
Pickup pickup.Params
Message message.Params Message message.Params
Historical rounds.Params Historical rounds.Params
} }
...@@ -69,6 +70,7 @@ func GetDefaultParams() Params { ...@@ -69,6 +70,7 @@ func GetDefaultParams() Params {
ReplayRequests: true, ReplayRequests: true,
} }
n.Rounds = rounds.GetDefaultParams() n.Rounds = rounds.GetDefaultParams()
n.Pickup = pickup.GetDefaultParams()
n.Message = message.GetDefaultParams() n.Message = message.GetDefaultParams()
n.Historical = rounds.GetDefaultParams() n.Historical = rounds.GetDefaultParams()
...@@ -81,7 +83,7 @@ func (n Params) Marshal() ([]byte, error) { ...@@ -81,7 +83,7 @@ func (n Params) Marshal() ([]byte, error) {
func (n Params) SetRealtimeOnlyAll() Params { func (n Params) SetRealtimeOnlyAll() Params {
n.RealtimeOnly = true n.RealtimeOnly = true
n.Rounds.RealtimeOnly = true n.Pickup.RealtimeOnly = true
n.Message.RealtimeOnly = true n.Message.RealtimeOnly = true
return n return n
} }
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
// LICENSE file // // LICENSE file //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
package rounds package pickup
import ( import (
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/cmix/rounds"
"gitlab.com/elixxir/client/cmix/identity/receptionID" "gitlab.com/elixxir/client/cmix/identity/receptionID"
"gitlab.com/elixxir/client/cmix/rounds"
"gitlab.com/xx_network/primitives/id" "gitlab.com/xx_network/primitives/id"
) )
......
package rounds package pickup
import "time" import "time"
......
...@@ -5,14 +5,14 @@ ...@@ -5,14 +5,14 @@
// LICENSE file // // LICENSE file //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
package rounds package pickup
import ( import (
"gitlab.com/elixxir/client/cmix/gateway" "gitlab.com/elixxir/client/cmix/gateway"
"gitlab.com/elixxir/client/cmix/rounds"
"gitlab.com/elixxir/client/cmix/identity/receptionID" "gitlab.com/elixxir/client/cmix/identity/receptionID"
"gitlab.com/elixxir/client/cmix/message" "gitlab.com/elixxir/client/cmix/message"
"gitlab.com/elixxir/client/cmix/pickup/store" "gitlab.com/elixxir/client/cmix/pickup/store"
"gitlab.com/elixxir/client/cmix/rounds"
"gitlab.com/elixxir/client/stoppable" "gitlab.com/elixxir/client/stoppable"
"gitlab.com/elixxir/client/storage" "gitlab.com/elixxir/client/storage"
"gitlab.com/elixxir/crypto/fastRNG" "gitlab.com/elixxir/crypto/fastRNG"
...@@ -66,7 +66,7 @@ func NewPickup(params Params, bundles chan<- message.Bundle, ...@@ -66,7 +66,7 @@ func NewPickup(params Params, bundles chan<- message.Bundle,
func (m *pickup) StartProcessors() stoppable.Stoppable { func (m *pickup) StartProcessors() stoppable.Stoppable {
multi := stoppable.NewMulti("Rounds") multi := stoppable.NewMulti("Pickup")
// Start the message retrieval worker pool // Start the message retrieval worker pool
for i := uint(0); i < m.params.NumMessageRetrievalWorkers; i++ { for i := uint(0); i < m.params.NumMessageRetrievalWorkers; i++ {
......
...@@ -5,16 +5,16 @@ ...@@ -5,16 +5,16 @@
// LICENSE file // // LICENSE file //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
package rounds package pickup
import ( import (
"encoding/binary" "encoding/binary"
"github.com/pkg/errors" "github.com/pkg/errors"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/cmix/gateway" "gitlab.com/elixxir/client/cmix/gateway"
"gitlab.com/elixxir/client/cmix/rounds"
"gitlab.com/elixxir/client/cmix/identity/receptionID" "gitlab.com/elixxir/client/cmix/identity/receptionID"
"gitlab.com/elixxir/client/cmix/message" "gitlab.com/elixxir/client/cmix/message"
"gitlab.com/elixxir/client/cmix/rounds"
"gitlab.com/elixxir/client/stoppable" "gitlab.com/elixxir/client/stoppable"
pb "gitlab.com/elixxir/comms/mixmessages" pb "gitlab.com/elixxir/comms/mixmessages"
"gitlab.com/elixxir/crypto/shuffle" "gitlab.com/elixxir/crypto/shuffle"
......
...@@ -4,14 +4,14 @@ ...@@ -4,14 +4,14 @@
// Use of this source code is governed by a license that can be found in the // // Use of this source code is governed by a license that can be found in the //
// LICENSE file // // LICENSE file //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
package rounds package pickup
import ( import (
"bytes" "bytes"
"gitlab.com/elixxir/client/cmix/gateway" "gitlab.com/elixxir/client/cmix/gateway"
"gitlab.com/elixxir/client/cmix/rounds"
ephemeral2 "gitlab.com/elixxir/client/cmix/identity/receptionID" ephemeral2 "gitlab.com/elixxir/client/cmix/identity/receptionID"
"gitlab.com/elixxir/client/cmix/message" "gitlab.com/elixxir/client/cmix/message"
"gitlab.com/elixxir/client/cmix/rounds"
"gitlab.com/elixxir/client/stoppable" "gitlab.com/elixxir/client/stoppable"
"gitlab.com/elixxir/crypto/fastRNG" "gitlab.com/elixxir/crypto/fastRNG"
"gitlab.com/xx_network/comms/connect" "gitlab.com/xx_network/comms/connect"
......
package rounds package pickup
import ( import (
pb "gitlab.com/elixxir/comms/mixmessages" pb "gitlab.com/elixxir/comms/mixmessages"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// LICENSE file // // LICENSE file //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
package rounds package pickup
import ( import (
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// LICENSE file // // LICENSE file //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
package rounds package pickup
import ( import (
"gitlab.com/elixxir/client/cmix/gateway" "gitlab.com/elixxir/client/cmix/gateway"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// Use of this source code is governed by a license that can be found in the // // Use of this source code is governed by a license that can be found in the //
// LICENSE file // // LICENSE file //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
package rounds package pickup
import ( import (
"github.com/pkg/errors" "github.com/pkg/errors"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment