Created ACL and PubSub interfaces to be used in Server struct definition to avoid future circular imports in acl and pubsub packages

This commit is contained in:
Kelvin Clement Mwinuka
2024-02-13 11:43:13 +08:00
parent 7356cf34f5
commit 53ade871ad
2 changed files with 10 additions and 4 deletions

View File

@@ -7,8 +7,6 @@ import (
"errors"
"fmt"
"github.com/echovault/echovault/src/memberlist"
"github.com/echovault/echovault/src/modules/acl"
"github.com/echovault/echovault/src/modules/pubsub"
"github.com/echovault/echovault/src/raft"
"github.com/echovault/echovault/src/server/aof"
"github.com/echovault/echovault/src/server/snapshot"
@@ -38,8 +36,8 @@ type Server struct {
CancelCh *chan os.Signal
ACL *acl.ACL
PubSub *pubsub.PubSub
ACL utils.ACL
PubSub utils.PubSub
SnapshotInProgress atomic.Bool
RewriteAOFInProgress atomic.Bool