Skip to content

Commit

Permalink
Merge pull request #6550 from multiversx/update-mx-chain-communicatio…
Browse files Browse the repository at this point in the history
…n-go

new version of mx-chain-comm-go
  • Loading branch information
miiu96 authored Oct 25, 2024
2 parents 955a896 + 4306c57 commit d9d3dc7
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cmd/node/config/external.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

# URL for the WebSocket client/server connection
# This value represents the IP address and port number that the WebSocket client or server will use to establish a connection.
URL = "127.0.0.1:22111"
URL = "ws://127.0.0.1:22111"

# After a message will be sent it will wait for an ack message if this flag is enabled
WithAcknowledge = true
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
github.com/gorilla/websocket v1.5.0
github.com/klauspost/cpuid/v2 v2.2.5
github.com/mitchellh/mapstructure v1.5.0
github.com/multiversx/mx-chain-communication-go v1.1.0
github.com/multiversx/mx-chain-communication-go v1.1.1-0.20241021133229-d0833256e3ec
github.com/multiversx/mx-chain-core-go v1.2.22
github.com/multiversx/mx-chain-crypto-go v1.2.12
github.com/multiversx/mx-chain-es-indexer-go v1.7.9
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ github.com/multiformats/go-varint v0.0.7 h1:sWSGR+f/eu5ABZA2ZpYKBILXTTs9JWpdEM/n
github.com/multiformats/go-varint v0.0.7/go.mod h1:r8PUYw/fD/SjBCiKOoDlGF6QawOELpZAu9eioSos/OU=
github.com/multiversx/concurrent-map v0.1.4 h1:hdnbM8VE4b0KYJaGY5yJS2aNIW9TFFsUYwbO0993uPI=
github.com/multiversx/concurrent-map v0.1.4/go.mod h1:8cWFRJDOrWHOTNSqgYCUvwT7c7eFQ4U2vKMOp4A/9+o=
github.com/multiversx/mx-chain-communication-go v1.1.0 h1:J7bX6HoN3HiHY7cUeEjG8AJWgQDDPcY+OPDOsSUOkRE=
github.com/multiversx/mx-chain-communication-go v1.1.0/go.mod h1:WK6bP4pGEHGDDna/AYRIMtl6G9OA0NByI1Lw8PmOnRM=
github.com/multiversx/mx-chain-communication-go v1.1.1-0.20241021133229-d0833256e3ec h1:KwpeVZXSHzic8DV9zaJZmaBgDNIIpSdbGz4Q+9fZyiI=
github.com/multiversx/mx-chain-communication-go v1.1.1-0.20241021133229-d0833256e3ec/go.mod h1:WK6bP4pGEHGDDna/AYRIMtl6G9OA0NByI1Lw8PmOnRM=
github.com/multiversx/mx-chain-core-go v1.2.22 h1:yDYrvoQOBbsDerEp7L3+de5AfMy3pTF333gWPpd+FNk=
github.com/multiversx/mx-chain-core-go v1.2.22/go.mod h1:B5zU4MFyJezmEzCsAHE9YNULmGCm2zbPHvl9hazNxmE=
github.com/multiversx/mx-chain-crypto-go v1.2.12 h1:zWip7rpUS4CGthJxfKn5MZfMfYPjVjIiCID6uX5BSOk=
Expand Down
4 changes: 2 additions & 2 deletions node/chainSimulator/components/memoryComponents.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (

// CreateMemUnit creates a new in-memory storage unit
func CreateMemUnit() storage.Storer {
capacity := uint32(10)
capacity := uint32(10_000_000)
shards := uint32(1)
sizeInBytes := uint64(0)
cache, _ := storageunit.NewCache(storageunit.CacheConfig{Type: storageunit.LRUCache, Capacity: capacity, Shards: shards, SizeInBytes: sizeInBytes})
persist, _ := database.NewlruDB(100000)
persist, _ := database.NewlruDB(10_000_000)
unit, _ := storageunit.NewStorageUnit(cache, persist)

return unit
Expand Down
2 changes: 1 addition & 1 deletion outport/factory/hostDriverFactory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestCreateHostDriver(t *testing.T) {

args := ArgsHostDriverFactory{
HostConfig: config.HostDriversConfig{
URL: "localhost",
URL: "ws://localhost",
RetryDurationInSec: 1,
MarshallerType: "json",
Mode: data.ModeClient,
Expand Down
6 changes: 3 additions & 3 deletions outport/factory/outportFactory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func TestCreateOutport_SubscribeMultipleHostDrivers(t *testing.T) {
Marshaller: &testscommon.MarshalizerMock{},
HostConfig: config.HostDriversConfig{
Enabled: true,
URL: "localhost",
URL: "ws://localhost",
RetryDurationInSec: 1,
MarshallerType: "json",
Mode: data.ModeClient,
Expand All @@ -132,7 +132,7 @@ func TestCreateOutport_SubscribeMultipleHostDrivers(t *testing.T) {
Marshaller: &testscommon.MarshalizerMock{},
HostConfig: config.HostDriversConfig{
Enabled: false,
URL: "localhost",
URL: "ws://localhost",
RetryDurationInSec: 1,
MarshallerType: "json",
Mode: data.ModeClient,
Expand All @@ -142,7 +142,7 @@ func TestCreateOutport_SubscribeMultipleHostDrivers(t *testing.T) {
Marshaller: &testscommon.MarshalizerMock{},
HostConfig: config.HostDriversConfig{
Enabled: true,
URL: "localhost",
URL: "ws://localhost",
RetryDurationInSec: 1,
MarshallerType: "json",
Mode: data.ModeClient,
Expand Down
2 changes: 1 addition & 1 deletion testscommon/components/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ func GetStatusComponentsFactoryArgsAndProcessComponents(shardCoordinator shardin
{
MarshallerType: "json",
Mode: "client",
URL: "localhost:12345",
URL: "ws://localhost:12345",
RetryDurationInSec: 1,
},
},
Expand Down

0 comments on commit d9d3dc7

Please sign in to comment.