config: unify BasicService config within existing services

There are no changes visible from the user side (at least for those
users who doesn't put Prometheus's or pprof's port in quotes), just
internal refactoring. From now and on, BasicService configuration is
used by RPC server config, TLS for RPC server, pprof and Prometheus.
This commit is contained in:
Anna Shaleva 2022-11-24 16:03:08 +03:00
parent d6b99a9a27
commit 6b4dd5703e
9 changed files with 63 additions and 16 deletions

View file

@ -330,7 +330,9 @@ func TestConfigureAddresses(t *testing.T) {
cfg := &config.ApplicationConfiguration{
Address: defaultAddress,
RPC: config.RPC{
Address: customAddress,
BasicService: config.BasicService{
Address: customAddress,
},
},
}
configureAddresses(cfg)