Skip to content

Commit

Permalink
add comments on grpc server fields
Browse files Browse the repository at this point in the history
  • Loading branch information
fairclothjm committed Feb 14, 2022
1 parent 82813ee commit a8e4cba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdk/database/dbplugin/v5/grpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a8e4cba

Please sign in to comment.