Merge pull request #5600 from kobergj/EventHistory

Eventhistory Service
This commit is contained in:
kobergj
2023-02-21 14:08:01 +01:00
committed by GitHub
40 changed files with 1721 additions and 29 deletions
+5 -4
View File
@@ -7,6 +7,7 @@ import (
"net/http"
"os"
"strconv"
"strings"
"time"
"github.com/go-chi/chi/v5"
@@ -156,10 +157,10 @@ func NewService(opts ...Option) (Graph, error) {
roleManager := options.RoleManager
if roleManager == nil {
storeOptions := store.OcisStoreOptions{
Type: options.Config.CacheStore.Type,
Address: options.Config.CacheStore.Address,
Size: options.Config.CacheStore.Size,
storeOptions := []store.Option{
store.Type(options.Config.CacheStore.Type),
store.Addresses(strings.Split(options.Config.CacheStore.Address, ",")...),
store.Size(options.Config.CacheStore.Size),
}
m := roles.NewManager(
roles.StoreOptions(storeOptions),