From 82813ee68e7ffa150ab4babfb087d662fa669023 Mon Sep 17 00:00:00 2001 From: JM Faircloth Date: Fri, 11 Feb 2022 18:21:23 -0600 Subject: [PATCH] revert postgres to non-multiplexed --- .../database/postgresql/postgresql-database-plugin/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/database/postgresql/postgresql-database-plugin/main.go b/plugins/database/postgresql/postgresql-database-plugin/main.go index de168012ceb2..3d2e14cd9aab 100644 --- a/plugins/database/postgresql/postgresql-database-plugin/main.go +++ b/plugins/database/postgresql/postgresql-database-plugin/main.go @@ -18,7 +18,12 @@ func main() { // Run instantiates a PostgreSQL object, and runs the RPC server for the plugin func Run() error { - dbplugin.ServeMultiplex(postgresql.New) + dbType, err := postgresql.New() + if err != nil { + return err + } + + dbplugin.Serve(dbType.(dbplugin.Database)) return nil }