提交
This commit is contained in:
parent
07a3b90b3a
commit
5c892e1f0e
4
sm.go
4
sm.go
|
@ -23,8 +23,7 @@ type SMQueue struct {
|
||||||
// 互斥锁,保护队列Map的并发访问
|
// 互斥锁,保护队列Map的并发访问
|
||||||
mu *sync.Mutex
|
mu *sync.Mutex
|
||||||
// 组名到队列的映射
|
// 组名到队列的映射
|
||||||
queues map[string]*PriorityQueue[QueueItem]
|
queues map[string]*PriorityQueue[QueueItem]
|
||||||
|
|
||||||
counter *triggered.EventExecute[int64]
|
counter *triggered.EventExecute[int64]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,7 +58,6 @@ func NewSMQueue(shardID uint64, replicaID uint64) sm.IStateMachine {
|
||||||
// we always return the Count value as a little endian binary encoded byte
|
// we always return the Count value as a little endian binary encoded byte
|
||||||
// slice.
|
// slice.
|
||||||
func (s *SMQueue) Lookup(group interface{}) (item interface{}, err error) {
|
func (s *SMQueue) Lookup(group interface{}) (item interface{}, err error) {
|
||||||
|
|
||||||
return item, nil
|
return item, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user