[WIP] don't write to public.node from ipld-eth-server #37

Merged
ramilexe merged 2 commits from read_only_db into master 2021-03-10 10:13:43 +00:00
Showing only changes of commit 7719d9beb9 - Show all commits

View File

@ -108,7 +108,7 @@ func NewConfig() (*Config, error) {
}
c.HTTPEndpoint = httpPath
overrideDBConnConfig(&c.DBConfig)
serveDB := utils.LoadPostgres(c.DBConfig, nodeInfo)
serveDB := utils.LoadPostgres(c.DBConfig, nodeInfo, false)
prom.RegisterDBCollector(c.DBConfig.Name, serveDB.DB)
c.DB = &serveDB