Skip to content

Commit d9d3dc7

Browse files
authored
Merge pull request #6550 from multiversx/update-mx-chain-communication-go
new version of mx-chain-comm-go
2 parents 955a896 + 4306c57 commit d9d3dc7

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

cmd/node/config/external.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

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

5656
# After a message will be sent it will wait for an ack message if this flag is enabled
5757
WithAcknowledge = true

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require (
1414
github.com/gorilla/websocket v1.5.0
1515
github.com/klauspost/cpuid/v2 v2.2.5
1616
github.com/mitchellh/mapstructure v1.5.0
17-
github.com/multiversx/mx-chain-communication-go v1.1.0
17+
github.com/multiversx/mx-chain-communication-go v1.1.1-0.20241021133229-d0833256e3ec
1818
github.com/multiversx/mx-chain-core-go v1.2.22
1919
github.com/multiversx/mx-chain-crypto-go v1.2.12
2020
github.com/multiversx/mx-chain-es-indexer-go v1.7.9

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ github.com/multiformats/go-varint v0.0.7 h1:sWSGR+f/eu5ABZA2ZpYKBILXTTs9JWpdEM/n
385385
github.com/multiformats/go-varint v0.0.7/go.mod h1:r8PUYw/fD/SjBCiKOoDlGF6QawOELpZAu9eioSos/OU=
386386
github.com/multiversx/concurrent-map v0.1.4 h1:hdnbM8VE4b0KYJaGY5yJS2aNIW9TFFsUYwbO0993uPI=
387387
github.com/multiversx/concurrent-map v0.1.4/go.mod h1:8cWFRJDOrWHOTNSqgYCUvwT7c7eFQ4U2vKMOp4A/9+o=
388-
github.com/multiversx/mx-chain-communication-go v1.1.0 h1:J7bX6HoN3HiHY7cUeEjG8AJWgQDDPcY+OPDOsSUOkRE=
389-
github.com/multiversx/mx-chain-communication-go v1.1.0/go.mod h1:WK6bP4pGEHGDDna/AYRIMtl6G9OA0NByI1Lw8PmOnRM=
388+
github.com/multiversx/mx-chain-communication-go v1.1.1-0.20241021133229-d0833256e3ec h1:KwpeVZXSHzic8DV9zaJZmaBgDNIIpSdbGz4Q+9fZyiI=
389+
github.com/multiversx/mx-chain-communication-go v1.1.1-0.20241021133229-d0833256e3ec/go.mod h1:WK6bP4pGEHGDDna/AYRIMtl6G9OA0NByI1Lw8PmOnRM=
390390
github.com/multiversx/mx-chain-core-go v1.2.22 h1:yDYrvoQOBbsDerEp7L3+de5AfMy3pTF333gWPpd+FNk=
391391
github.com/multiversx/mx-chain-core-go v1.2.22/go.mod h1:B5zU4MFyJezmEzCsAHE9YNULmGCm2zbPHvl9hazNxmE=
392392
github.com/multiversx/mx-chain-crypto-go v1.2.12 h1:zWip7rpUS4CGthJxfKn5MZfMfYPjVjIiCID6uX5BSOk=

node/chainSimulator/components/memoryComponents.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import (
99

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

1919
return unit

outport/factory/hostDriverFactory_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func TestCreateHostDriver(t *testing.T) {
1515

1616
args := ArgsHostDriverFactory{
1717
HostConfig: config.HostDriversConfig{
18-
URL: "localhost",
18+
URL: "ws://localhost",
1919
RetryDurationInSec: 1,
2020
MarshallerType: "json",
2121
Mode: data.ModeClient,

outport/factory/outportFactory_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func TestCreateOutport_SubscribeMultipleHostDrivers(t *testing.T) {
122122
Marshaller: &testscommon.MarshalizerMock{},
123123
HostConfig: config.HostDriversConfig{
124124
Enabled: true,
125-
URL: "localhost",
125+
URL: "ws://localhost",
126126
RetryDurationInSec: 1,
127127
MarshallerType: "json",
128128
Mode: data.ModeClient,
@@ -132,7 +132,7 @@ func TestCreateOutport_SubscribeMultipleHostDrivers(t *testing.T) {
132132
Marshaller: &testscommon.MarshalizerMock{},
133133
HostConfig: config.HostDriversConfig{
134134
Enabled: false,
135-
URL: "localhost",
135+
URL: "ws://localhost",
136136
RetryDurationInSec: 1,
137137
MarshallerType: "json",
138138
Mode: data.ModeClient,
@@ -142,7 +142,7 @@ func TestCreateOutport_SubscribeMultipleHostDrivers(t *testing.T) {
142142
Marshaller: &testscommon.MarshalizerMock{},
143143
HostConfig: config.HostDriversConfig{
144144
Enabled: true,
145-
URL: "localhost",
145+
URL: "ws://localhost",
146146
RetryDurationInSec: 1,
147147
MarshallerType: "json",
148148
Mode: data.ModeClient,

testscommon/components/components.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ func GetStatusComponentsFactoryArgsAndProcessComponents(shardCoordinator shardin
687687
{
688688
MarshallerType: "json",
689689
Mode: "client",
690-
URL: "localhost:12345",
690+
URL: "ws://localhost:12345",
691691
RetryDurationInSec: 1,
692692
},
693693
},

0 commit comments

Comments
 (0)