rpc: move rpc.Config to pkg/config, remove pkg/rpc

Makes no sense keeping it as is and TLS can be reused in the future.
This commit is contained in:
Roman Khimov 2022-07-22 19:17:48 +03:00
parent 1e0750e3cd
commit 8e70cd3596
5 changed files with 12 additions and 15 deletions

View file

@ -10,7 +10,6 @@ import (
"github.com/nspcc-dev/neo-go/pkg/config"
"github.com/nspcc-dev/neo-go/pkg/config/netmode"
"github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig"
"github.com/nspcc-dev/neo-go/pkg/rpc"
"github.com/stretchr/testify/require"
"github.com/urfave/cli"
"go.uber.org/zap"
@ -303,7 +302,7 @@ func TestConfigureAddresses(t *testing.T) {
t.Run("custom RPC address", func(t *testing.T) {
cfg := &config.ApplicationConfiguration{
Address: defaultAddress,
RPC: rpc.Config{
RPC: config.RPC{
Address: customAddress,
},
}