Skip to content

Commit

Permalink
fix sql user share driver registration
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Oct 27, 2023
1 parent 2fd11c7 commit e582181
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions share/sql/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ import (
collaboration "github.com/cs3org/go-cs3apis/cs3/sharing/collaboration/v1beta1"
provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
typespb "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
"github.com/cs3org/reva"
"github.com/cs3org/reva/pkg/appctx"
conversions "github.com/cs3org/reva/pkg/cbox/utils"
"github.com/cs3org/reva/pkg/errtypes"
"github.com/cs3org/reva/pkg/rgrpc/todo/pool"
"github.com/cs3org/reva/pkg/share"
"github.com/cs3org/reva/pkg/share/manager/registry"
"github.com/cs3org/reva/pkg/sharedconf"
"github.com/cs3org/reva/pkg/utils"
"github.com/cs3org/reva/pkg/utils/cfg"
Expand All @@ -58,7 +58,14 @@ const (
)

func init() {
registry.Register("sql", New)
reva.RegisterPlugin(mgr{})
}

func (mgr) RevaPlugin() reva.PluginInfo {
return reva.PluginInfo{
ID: "grpc.services.usershareprovider.drivers.sql",
New: New,
}
}

type config struct {
Expand Down

0 comments on commit e582181

Please sign in to comment.