세션 invalidate될 때 전달하는 인자를 구조체로 변경

This commit is contained in:
2025-09-11 09:38:38 +09:00
parent c73ffda016
commit 0392966760
7 changed files with 45 additions and 432 deletions

View File

@ -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) {