deleteChannel 오류 수정
This commit is contained in:
@ -36,7 +36,7 @@ func newProviderWithRedis(ctx context.Context, redisUrl string, ttl time.Duratio
|
|||||||
|
|
||||||
return &provider_redis{
|
return &provider_redis{
|
||||||
redisClient: redisClient,
|
redisClient: redisClient,
|
||||||
deleteChannel: fmt.Sprintf("%s_%d", communication_channel_name_prefix, redisClient.Options().DB),
|
deleteChannel: fmt.Sprintf("%s_%d_d", communication_channel_name_prefix, redisClient.Options().DB),
|
||||||
ttl: ttl,
|
ttl: ttl,
|
||||||
ctx: ctx,
|
ctx: ctx,
|
||||||
}, nil
|
}, nil
|
||||||
@ -131,7 +131,7 @@ func newConsumerWithRedis(ctx context.Context, redisUrl string, ttl time.Duratio
|
|||||||
redisClient: redisClient,
|
redisClient: redisClient,
|
||||||
}
|
}
|
||||||
|
|
||||||
deleteChannel := communication_channel_name_prefix + "_d"
|
deleteChannel := fmt.Sprintf("%s_%d_d", communication_channel_name_prefix, redisClient.Options().DB)
|
||||||
sub := redisClient.Subscribe(ctx, deleteChannel)
|
sub := redisClient.Subscribe(ctx, deleteChannel)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
|||||||
Reference in New Issue
Block a user