세션 invalidate될 때 전달하는 인자를 구조체로 변경
This commit is contained in:
@ -4,8 +4,6 @@ import (
|
||||
"context"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
|
||||
type cache_stage[T any] struct {
|
||||
@ -26,7 +24,7 @@ type consumer_common[T any] struct {
|
||||
ctx context.Context
|
||||
stages [2]*cache_stage[T]
|
||||
startTime time.Time
|
||||
onSessionInvalidated []func(primitive.ObjectID)
|
||||
onSessionInvalidated []func(InvalidatedSession)
|
||||
}
|
||||
|
||||
func (c *consumer_common[T]) add_internal(sk storagekey, si T) {
|
||||
|
||||
Reference in New Issue
Block a user