Skip to content

Commit

Permalink
Merge pull request #1224 from DRK3/MongoDBSupport
Browse files Browse the repository at this point in the history
feat: MongoDB support for ace-rp-rest, issuer-rest, and rp-rest
  • Loading branch information
fqutishat authored Sep 16, 2021
2 parents 76fea15 + be8fa25 commit 76e60bd
Show file tree
Hide file tree
Showing 10 changed files with 94 additions and 23 deletions.
7 changes: 7 additions & 0 deletions cmd/ace-rp-rest/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,7 @@ github.com/hyperledger/aries-framework-go v0.1.7/go.mod h1:uve8/q23AUnq4EM0vBkEr
github.com/hyperledger/aries-framework-go-ext/component/storage/couchdb v0.0.0-20210714131038-41b5bccef1f9/go.mod h1:We+7ZhPTzGrWLmaELzo8tvUT/ZqCa4v9SV961gH8b60=
github.com/hyperledger/aries-framework-go-ext/component/storage/couchdb v0.0.0-20210909220549-ce3a2ee13e22 h1:dzRPCOUIU/RKlGSGJsqpBh0uHOjMN4LC/c25fs7nnlE=
github.com/hyperledger/aries-framework-go-ext/component/storage/couchdb v0.0.0-20210909220549-ce3a2ee13e22/go.mod h1:FtlFhPHMyLORgrPpvWSmEQSNhLiwAQ4V6rqNPfuDj0o=
github.com/hyperledger/aries-framework-go-ext/component/storage/mongodb v0.0.0-20210909220549-ce3a2ee13e22 h1:bbYkqUivcXWtD+MtHSY9YQC77ezE9kpWlhxNrTG/aUk=
github.com/hyperledger/aries-framework-go-ext/component/storage/mongodb v0.0.0-20210909220549-ce3a2ee13e22/go.mod h1:aiO9mXZBykIEwmgp9sSdpMuTw0P7b+ZFUltcIB9ZccY=
github.com/hyperledger/aries-framework-go-ext/component/storage/mysql v0.0.0-20210714131038-41b5bccef1f9/go.mod h1:c4b+LAZgp43XFk1jQb72xF+v6J3BplPY2t16b/R8mvI=
github.com/hyperledger/aries-framework-go-ext/component/storage/mysql v0.0.0-20210909220549-ce3a2ee13e22 h1:1Pns3wrZYn7o5M3oLxvOvrMICTubWBa95yItrpgJV38=
Expand Down Expand Up @@ -1008,6 +1009,7 @@ github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+o
github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4=
github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
github.com/klauspost/compress v1.9.5/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
github.com/klauspost/compress v1.10.0 h1:92XGj1AcYzA6UrVdd4qIIBrT8OroryvRvdmg/IfmC7Y=
github.com/klauspost/compress v1.10.0/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
Expand Down Expand Up @@ -1465,8 +1467,11 @@ github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
github.com/xanzy/go-gitlab v0.31.0/go.mod h1:sPLojNBn68fMUWSxIJtdVVIP8uSBYqesTfDUseX11Ug=
github.com/xanzy/ssh-agent v0.2.1/go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4=
github.com/xdg-go/pbkdf2 v1.0.0 h1:Su7DPu48wXMwC3bs7MCNG+z4FhcyEuz5dlvchbq0B0c=
github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI=
github.com/xdg-go/scram v1.0.2 h1:akYIkZ28e6A96dkWNJQu3nmCzH3YfwMPQExUYDaRv7w=
github.com/xdg-go/scram v1.0.2/go.mod h1:1WAq6h33pAW+iRreB34OORO2Nf7qel3VV3fjBj+hCSs=
github.com/xdg-go/stringprep v1.0.2 h1:6iq84/ryjjeRmMJwxutI51F2GIPlP5BfTvXHeYjyhBc=
github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM=
github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I=
github.com/xdg/stringprep v0.0.0-20180714160509-73f8eece6fdc/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y=
Expand All @@ -1481,6 +1486,7 @@ github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQ
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos=
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d h1:splanxYIlg+5LfHAM6xpdFEAYOk8iySO56hMFq6uLyA=
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand Down Expand Up @@ -1721,6 +1727,7 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
Expand Down
2 changes: 1 addition & 1 deletion cmd/ace-rp-rest/startcmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func startRP(parameters *rpParameters) error { //nolint:funlen,gocyclo
basePath := "static/" + parameters.modeConf.uiPath
router := pathPrefix(basePath)

storeProvider, err := common.InitEdgeStore(parameters.dbParams, logger)
storeProvider, err := common.InitStore(parameters.dbParams, logger)
if err != nil {
return err
}
Expand Down
38 changes: 27 additions & 11 deletions cmd/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (

"github.com/cenkalti/backoff/v4"
"github.com/hyperledger/aries-framework-go-ext/component/storage/couchdb"
"github.com/hyperledger/aries-framework-go-ext/component/storage/mongodb"
"github.com/hyperledger/aries-framework-go-ext/component/storage/mysql"
"github.com/hyperledger/aries-framework-go/component/storageutil/mem"
"github.com/hyperledger/aries-framework-go/pkg/doc/ld"
Expand Down Expand Up @@ -46,10 +47,10 @@ const (
// DatabaseURLFlagUsage describes the usage.
DatabaseURLFlagUsage = "Database URL with credentials if required." +
" Format must be <driver>:[//]<driver-specific-dsn>." +
" Examples: 'mysql://root:secret@tcp(localhost:3306)/adapter', 'mem://test'." +
" Supported drivers are [mem, mysql, couchdb]." +
" Examples: 'mysql://root:secret@tcp(localhost:3306)/component', 'mem://test'," +
"'mongodb://mongodb.example.com:27017'. Supported drivers are [mem, mysql, couchdb, mongodb]." +
" Alternatively, this can be set with the following environment variable: " + DatabaseURLEnvKey
// DatabaseURLEnvKey is the databaes url.
// DatabaseURLEnvKey is the database url.
DatabaseURLEnvKey = "DATABASE_URL"

// DatabaseTimeoutFlagName is the database timeout.
Expand All @@ -71,6 +72,11 @@ const (

// DatabaseTimeoutDefault is the default storage timeout.
DatabaseTimeoutDefault = 30

databaseTypeMemOption = "mem"
databaseTypeMYSQLDBOption = "mysql"
databaseTypeCouchDBOption = "couchdb"
databaseTypeMongoDBOption = "mongodb"
)

// DBParameters holds database configuration.
Expand All @@ -81,16 +87,19 @@ type DBParameters struct {
}

// nolint:gochecknoglobals
var supportedEdgeStorageProviders = map[string]func(string, string) (storage.Provider, error){
"mysql": func(dbURL, prefix string) (storage.Provider, error) {
var supportedStorageProviders = map[string]func(string, string) (storage.Provider, error){
databaseTypeMYSQLDBOption: func(dbURL, prefix string) (storage.Provider, error) {
return mysql.NewProvider(dbURL, mysql.WithDBPrefix(prefix))
},
"mem": func(_, _ string) (storage.Provider, error) { // nolint:unparam
databaseTypeMemOption: func(_, _ string) (storage.Provider, error) { // nolint:unparam
return mem.NewProvider(), nil
},
"couchdb": func(dbURL, prefix string) (storage.Provider, error) {
databaseTypeCouchDBOption: func(dbURL, prefix string) (storage.Provider, error) {
return couchdb.NewProvider(dbURL, couchdb.WithDBPrefix(prefix))
},
databaseTypeMongoDBOption: func(dbURL, prefix string) (storage.Provider, error) {
return mongodb.NewProvider(dbURL, mongodb.WithDBPrefix(prefix))
},
}

// SetDefaultLogLevel sets the default log level.
Expand Down Expand Up @@ -152,8 +161,8 @@ func DBParams(cmd *cobra.Command) (*DBParameters, error) {
return params, nil
}

// InitEdgeStore provider.
func InitEdgeStore(params *DBParameters, logger log.Logger) (storage.Provider, error) {
// InitStore provider.
func InitStore(params *DBParameters, logger log.Logger) (storage.Provider, error) {
const (
sleep = 1 * time.Second
urlParts = 2
Expand All @@ -172,9 +181,16 @@ func InitEdgeStore(params *DBParameters, logger log.Logger) (storage.Provider, e
}

driver := parsed[0]
dsn := strings.TrimPrefix(parsed[1], "//")

providerFunc, supported := supportedEdgeStorageProviders[driver]
var dsn string
if driver == databaseTypeMongoDBOption {
// The MongoDB storage provider needs the full connection string (including the driver as part of it).
dsn = params.URL
} else {
dsn = strings.TrimPrefix(parsed[1], "//")
}

providerFunc, supported := supportedStorageProviders[driver]
if !supported {
return nil, fmt.Errorf("unsupported storage driver: %s", driver)
}
Expand Down
38 changes: 29 additions & 9 deletions cmd/common/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func TestDBParams(t *testing.T) {

func TestInitEdgeStore(t *testing.T) {
t.Run("inits ok", func(t *testing.T) {
s, err := InitEdgeStore(&DBParameters{
s, err := InitStore(&DBParameters{
URL: "mem://test",
Prefix: "test",
Timeout: 30,
Expand All @@ -132,7 +132,7 @@ func TestInitEdgeStore(t *testing.T) {
})

t.Run("error if url format is invalid", func(t *testing.T) {
_, err := InitEdgeStore(&DBParameters{
_, err := InitStore(&DBParameters{
URL: "invalid",
Prefix: "test",
Timeout: 30,
Expand All @@ -141,7 +141,7 @@ func TestInitEdgeStore(t *testing.T) {
})

t.Run("error if driver is not supported", func(t *testing.T) {
_, err := InitEdgeStore(&DBParameters{
_, err := InitStore(&DBParameters{
URL: "unsupported://test",
Prefix: "test",
Timeout: 30,
Expand All @@ -150,12 +150,32 @@ func TestInitEdgeStore(t *testing.T) {
})

t.Run("error if cannot connect to store", func(t *testing.T) {
_, err := InitEdgeStore(&DBParameters{
URL: "mysql://test:secret@tcp(localhost:5984)",
Prefix: "test",
Timeout: 1,
}, log.New("test"))
require.Error(t, err)
t.Run("mysql", func(t *testing.T) {
_, err := InitStore(&DBParameters{
URL: "mysql://test:secret@tcp(localhost:5984)",
Prefix: "test",
Timeout: 1,
}, log.New("test"))
require.Error(t, err)
})
t.Run("couchdb", func(t *testing.T) {
_, err := InitStore(&DBParameters{
URL: "couchdb://",
Prefix: "test",
Timeout: 1,
}, log.New("test"))
require.EqualError(t, err, "failed to connect to storage at : failed to ping couchDB: "+
"url can't be blank")
})
t.Run("mongodb", func(t *testing.T) {
_, err := InitStore(&DBParameters{
URL: "mongodb://",
Prefix: "test",
Timeout: 1,
}, log.New("test"))
require.EqualError(t, err, "failed to connect to storage at mongodb:// : "+
"failed to create a new MongoDB client: error parsing uri: must have at least 1 host")
})
})
}

Expand Down
9 changes: 9 additions & 0 deletions cmd/issuer-rest/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG
github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE=
github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/go-test/deep v1.0.1/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
github.com/go-test/deep v1.0.2-0.20181118220953-042da051cf31/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
Expand Down Expand Up @@ -844,6 +845,7 @@ github.com/hyperledger/aries-framework-go v0.1.7/go.mod h1:uve8/q23AUnq4EM0vBkEr
github.com/hyperledger/aries-framework-go-ext/component/storage/couchdb v0.0.0-20210714131038-41b5bccef1f9/go.mod h1:We+7ZhPTzGrWLmaELzo8tvUT/ZqCa4v9SV961gH8b60=
github.com/hyperledger/aries-framework-go-ext/component/storage/couchdb v0.0.0-20210909220549-ce3a2ee13e22 h1:dzRPCOUIU/RKlGSGJsqpBh0uHOjMN4LC/c25fs7nnlE=
github.com/hyperledger/aries-framework-go-ext/component/storage/couchdb v0.0.0-20210909220549-ce3a2ee13e22/go.mod h1:FtlFhPHMyLORgrPpvWSmEQSNhLiwAQ4V6rqNPfuDj0o=
github.com/hyperledger/aries-framework-go-ext/component/storage/mongodb v0.0.0-20210909220549-ce3a2ee13e22 h1:bbYkqUivcXWtD+MtHSY9YQC77ezE9kpWlhxNrTG/aUk=
github.com/hyperledger/aries-framework-go-ext/component/storage/mongodb v0.0.0-20210909220549-ce3a2ee13e22/go.mod h1:aiO9mXZBykIEwmgp9sSdpMuTw0P7b+ZFUltcIB9ZccY=
github.com/hyperledger/aries-framework-go-ext/component/storage/mysql v0.0.0-20210714131038-41b5bccef1f9/go.mod h1:c4b+LAZgp43XFk1jQb72xF+v6J3BplPY2t16b/R8mvI=
github.com/hyperledger/aries-framework-go-ext/component/storage/mysql v0.0.0-20210909220549-ce3a2ee13e22 h1:1Pns3wrZYn7o5M3oLxvOvrMICTubWBa95yItrpgJV38=
Expand Down Expand Up @@ -990,6 +992,7 @@ github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+o
github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4=
github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
github.com/klauspost/compress v1.9.5/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
github.com/klauspost/compress v1.10.0 h1:92XGj1AcYzA6UrVdd4qIIBrT8OroryvRvdmg/IfmC7Y=
github.com/klauspost/compress v1.10.0/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
Expand Down Expand Up @@ -1443,8 +1446,11 @@ github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
github.com/xanzy/go-gitlab v0.31.0/go.mod h1:sPLojNBn68fMUWSxIJtdVVIP8uSBYqesTfDUseX11Ug=
github.com/xanzy/ssh-agent v0.2.1/go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4=
github.com/xdg-go/pbkdf2 v1.0.0 h1:Su7DPu48wXMwC3bs7MCNG+z4FhcyEuz5dlvchbq0B0c=
github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI=
github.com/xdg-go/scram v1.0.2 h1:akYIkZ28e6A96dkWNJQu3nmCzH3YfwMPQExUYDaRv7w=
github.com/xdg-go/scram v1.0.2/go.mod h1:1WAq6h33pAW+iRreB34OORO2Nf7qel3VV3fjBj+hCSs=
github.com/xdg-go/stringprep v1.0.2 h1:6iq84/ryjjeRmMJwxutI51F2GIPlP5BfTvXHeYjyhBc=
github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM=
github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I=
github.com/xdg/stringprep v0.0.0-20180714160509-73f8eece6fdc/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y=
Expand All @@ -1459,6 +1465,7 @@ github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQ
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos=
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d h1:splanxYIlg+5LfHAM6xpdFEAYOk8iySO56hMFq6uLyA=
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand Down Expand Up @@ -1495,6 +1502,7 @@ go.mongodb.org/mongo-driver v1.3.4/go.mod h1:MSWZXKOynuguX+JSvwP8i+58jYCXxbia8HS
go.mongodb.org/mongo-driver v1.4.3/go.mod h1:WcMNYLx/IlOxLe6JRJiv2uXuCz6zBLndR4SoGjYphSc=
go.mongodb.org/mongo-driver v1.4.4/go.mod h1:WcMNYLx/IlOxLe6JRJiv2uXuCz6zBLndR4SoGjYphSc=
go.mongodb.org/mongo-driver v1.4.6/go.mod h1:WcMNYLx/IlOxLe6JRJiv2uXuCz6zBLndR4SoGjYphSc=
go.mongodb.org/mongo-driver v1.7.1 h1:jwqTeEM3x6L9xDXrCxN0Hbg7vdGfPBOTIkr0+/LYZDA=
go.mongodb.org/mongo-driver v1.7.1/go.mod h1:Q4oFMbo1+MSNqICAdYMlC/zSTrwCogR4R8NzkI+yfU8=
go.opencensus.io v0.15.0/go.mod h1:UffZAU+4sDEINUGP/B7UfBBkq4fqLu9zXAX7ke6CHW0=
go.opencensus.io v0.19.1/go.mod h1:gug0GbSHa8Pafr0d2urOSgoXHZ6x/RUlaiT0d9pqb4A=
Expand Down Expand Up @@ -1698,6 +1706,7 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
Expand Down
2 changes: 1 addition & 1 deletion cmd/issuer-rest/startcmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ func startIssuer(parameters *issuerParameters) error { //nolint:funlen,gocyclo

tlsConfig := &tls.Config{RootCAs: rootCAs, MinVersion: tls.VersionTLS12}

storeProvider, err := common.InitEdgeStore(parameters.dbParameters, logger)
storeProvider, err := common.InitStore(parameters.dbParameters, logger)
if err != nil {
return err
}
Expand Down
Loading

0 comments on commit 76e60bd

Please sign in to comment.