From 9139fce478e0184cbb045cd8a926236b0c3876e4 Mon Sep 17 00:00:00 2001 From: BeniaminDrasovean Date: Mon, 3 Apr 2023 14:50:27 +0300 Subject: [PATCH 1/4] use ErrDBIsClosed from core --- .gitignore | 3 +++ common/errors.go | 3 ++- go.mod | 2 +- go.sum | 3 ++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 66a5f9d..c87ac03 100644 --- a/.gitignore +++ b/.gitignore @@ -14,5 +14,8 @@ # Dependency directories /vendor +# IDE files +.idea/ + # Go workspace file go.work diff --git a/common/errors.go b/common/errors.go index 815ebae..6342eb4 100644 --- a/common/errors.go +++ b/common/errors.go @@ -2,6 +2,7 @@ package common import ( "errors" + "github.com/multiversx/mx-chain-core-go/core" ) // ErrNilPersister is raised when a nil persister is provided @@ -83,4 +84,4 @@ var ErrInvalidDefaultSpan = errors.New("invalid default span") var ErrInvalidCacheExpiry = errors.New("invalid cache expiry") // ErrDBIsClosed is raised when the DB is closed -var ErrDBIsClosed = errors.New("DB is closed") +var ErrDBIsClosed = core.ErrDBIsClosed diff --git a/go.mod b/go.mod index 4748303..01c2668 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( github.com/hashicorp/golang-lru v0.6.0 github.com/multiversx/concurrent-map v0.1.4 - github.com/multiversx/mx-chain-core-go v1.1.30 + github.com/multiversx/mx-chain-core-go v1.2.1-0.20230403113932-916b16d18978 github.com/multiversx/mx-chain-logger-go v1.0.11 github.com/stretchr/testify v1.7.1 github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 diff --git a/go.sum b/go.sum index 3712e6e..cd8350b 100644 --- a/go.sum +++ b/go.sum @@ -65,8 +65,9 @@ github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= 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-core-go v1.1.30 h1:BtURR4I6HU1OnSbxcPMTQSQXNqtOuH3RW6bg5N7FSM0= github.com/multiversx/mx-chain-core-go v1.1.30/go.mod h1:8gGEQv6BWuuJwhd25qqhCOZbBSv9mk+hLeKvinSaSMk= +github.com/multiversx/mx-chain-core-go v1.2.1-0.20230403113932-916b16d18978 h1:caHg1OhZmaA8oX3TbimkBaty+eHvhpNSO8rQOicrS7o= +github.com/multiversx/mx-chain-core-go v1.2.1-0.20230403113932-916b16d18978/go.mod h1:8gGEQv6BWuuJwhd25qqhCOZbBSv9mk+hLeKvinSaSMk= github.com/multiversx/mx-chain-logger-go v1.0.11 h1:DFsHa+sc5fKwhDR50I8uBM99RTDTEW68ESyr5ALRDwE= github.com/multiversx/mx-chain-logger-go v1.0.11/go.mod h1:1srDkP0DQucWQ+rYfaq0BX2qLnULsUdRPADpYUTM6dA= github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78= From c47b66209ce18ea59d584b42fae410af82c11032 Mon Sep 17 00:00:00 2001 From: BeniaminDrasovean Date: Tue, 16 May 2023 15:26:42 +0300 Subject: [PATCH 2/4] update go mod --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 01c2668..beb32bb 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( github.com/hashicorp/golang-lru v0.6.0 github.com/multiversx/concurrent-map v0.1.4 - github.com/multiversx/mx-chain-core-go v1.2.1-0.20230403113932-916b16d18978 + github.com/multiversx/mx-chain-core-go v1.2.3-0.20230516122245-0160e1d4aa6a github.com/multiversx/mx-chain-logger-go v1.0.11 github.com/stretchr/testify v1.7.1 github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 diff --git a/go.sum b/go.sum index cd8350b..a2515d6 100644 --- a/go.sum +++ b/go.sum @@ -66,8 +66,8 @@ github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjW 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-core-go v1.1.30/go.mod h1:8gGEQv6BWuuJwhd25qqhCOZbBSv9mk+hLeKvinSaSMk= -github.com/multiversx/mx-chain-core-go v1.2.1-0.20230403113932-916b16d18978 h1:caHg1OhZmaA8oX3TbimkBaty+eHvhpNSO8rQOicrS7o= -github.com/multiversx/mx-chain-core-go v1.2.1-0.20230403113932-916b16d18978/go.mod h1:8gGEQv6BWuuJwhd25qqhCOZbBSv9mk+hLeKvinSaSMk= +github.com/multiversx/mx-chain-core-go v1.2.3-0.20230516122245-0160e1d4aa6a h1:hkJLco9I1dEfg8GRCtzNgEPBZ1wsEkcnPRVFoE3qX4M= +github.com/multiversx/mx-chain-core-go v1.2.3-0.20230516122245-0160e1d4aa6a/go.mod h1:8gGEQv6BWuuJwhd25qqhCOZbBSv9mk+hLeKvinSaSMk= github.com/multiversx/mx-chain-logger-go v1.0.11 h1:DFsHa+sc5fKwhDR50I8uBM99RTDTEW68ESyr5ALRDwE= github.com/multiversx/mx-chain-logger-go v1.0.11/go.mod h1:1srDkP0DQucWQ+rYfaq0BX2qLnULsUdRPADpYUTM6dA= github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78= From 98a7f2c893e51302de139e20f9bc7ca65cf97603 Mon Sep 17 00:00:00 2001 From: BeniaminDrasovean Date: Thu, 18 May 2023 11:32:18 +0300 Subject: [PATCH 3/4] update go mod --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index beb32bb..122362d 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( github.com/hashicorp/golang-lru v0.6.0 github.com/multiversx/concurrent-map v0.1.4 - github.com/multiversx/mx-chain-core-go v1.2.3-0.20230516122245-0160e1d4aa6a + github.com/multiversx/mx-chain-core-go v1.2.4-0.20230518082654-bf2789086b0f github.com/multiversx/mx-chain-logger-go v1.0.11 github.com/stretchr/testify v1.7.1 github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 diff --git a/go.sum b/go.sum index a2515d6..43d3412 100644 --- a/go.sum +++ b/go.sum @@ -66,8 +66,8 @@ github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjW 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-core-go v1.1.30/go.mod h1:8gGEQv6BWuuJwhd25qqhCOZbBSv9mk+hLeKvinSaSMk= -github.com/multiversx/mx-chain-core-go v1.2.3-0.20230516122245-0160e1d4aa6a h1:hkJLco9I1dEfg8GRCtzNgEPBZ1wsEkcnPRVFoE3qX4M= -github.com/multiversx/mx-chain-core-go v1.2.3-0.20230516122245-0160e1d4aa6a/go.mod h1:8gGEQv6BWuuJwhd25qqhCOZbBSv9mk+hLeKvinSaSMk= +github.com/multiversx/mx-chain-core-go v1.2.4-0.20230518082654-bf2789086b0f h1:Lpp6qH6GnX8BK+mJ2l/qL5y/n098+3W4h5d/loaro0Y= +github.com/multiversx/mx-chain-core-go v1.2.4-0.20230518082654-bf2789086b0f/go.mod h1:8gGEQv6BWuuJwhd25qqhCOZbBSv9mk+hLeKvinSaSMk= github.com/multiversx/mx-chain-logger-go v1.0.11 h1:DFsHa+sc5fKwhDR50I8uBM99RTDTEW68ESyr5ALRDwE= github.com/multiversx/mx-chain-logger-go v1.0.11/go.mod h1:1srDkP0DQucWQ+rYfaq0BX2qLnULsUdRPADpYUTM6dA= github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78= From ea54293e1d83df436b47412ba2cf41e8becbf518 Mon Sep 17 00:00:00 2001 From: BeniaminDrasovean Date: Wed, 24 May 2023 10:50:17 +0300 Subject: [PATCH 4/4] proper release --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 122362d..7ab2401 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( github.com/hashicorp/golang-lru v0.6.0 github.com/multiversx/concurrent-map v0.1.4 - github.com/multiversx/mx-chain-core-go v1.2.4-0.20230518082654-bf2789086b0f + github.com/multiversx/mx-chain-core-go v1.2.5 github.com/multiversx/mx-chain-logger-go v1.0.11 github.com/stretchr/testify v1.7.1 github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 diff --git a/go.sum b/go.sum index 43d3412..f44631a 100644 --- a/go.sum +++ b/go.sum @@ -66,8 +66,8 @@ github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjW 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-core-go v1.1.30/go.mod h1:8gGEQv6BWuuJwhd25qqhCOZbBSv9mk+hLeKvinSaSMk= -github.com/multiversx/mx-chain-core-go v1.2.4-0.20230518082654-bf2789086b0f h1:Lpp6qH6GnX8BK+mJ2l/qL5y/n098+3W4h5d/loaro0Y= -github.com/multiversx/mx-chain-core-go v1.2.4-0.20230518082654-bf2789086b0f/go.mod h1:8gGEQv6BWuuJwhd25qqhCOZbBSv9mk+hLeKvinSaSMk= +github.com/multiversx/mx-chain-core-go v1.2.5 h1:uIZSqRygJAxv+pGuZnoSMwS4t10C/paasuwps5nxrIQ= +github.com/multiversx/mx-chain-core-go v1.2.5/go.mod h1:jzYFSiYBuO0dGpGFXnZWSwcwcKP7Flyn/X41y4zIQrQ= github.com/multiversx/mx-chain-logger-go v1.0.11 h1:DFsHa+sc5fKwhDR50I8uBM99RTDTEW68ESyr5ALRDwE= github.com/multiversx/mx-chain-logger-go v1.0.11/go.mod h1:1srDkP0DQucWQ+rYfaq0BX2qLnULsUdRPADpYUTM6dA= github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78=