From a8e4cbaaafbf5ecb57b2b44f57d2cd988afdbe83 Mon Sep 17 00:00:00 2001 From: JM Faircloth Date: Fri, 11 Feb 2022 19:59:15 -0600 Subject: [PATCH] add comments on grpc server fields --- sdk/database/dbplugin/v5/grpc_server.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdk/database/dbplugin/v5/grpc_server.go b/sdk/database/dbplugin/v5/grpc_server.go index 880964feb72e..c5d65f78e404 100644 --- a/sdk/database/dbplugin/v5/grpc_server.go +++ b/sdk/database/dbplugin/v5/grpc_server.go @@ -19,10 +19,13 @@ var _ proto.DatabaseServer = gRPCServer{} type gRPCServer struct { proto.UnimplementedDatabaseServer + // holds the non-multiplexed Database + // when this is set the plugin does not support multiplexing singleImpl Database - factoryFunc func() (interface{}, error) + // instances holds the multiplexed Databases instances map[string]Database + factoryFunc func() (interface{}, error) sync.RWMutex }