提交 6fc98e35 编写于 作者: 梦境迷离's avatar 梦境迷离

revert commit `STM`

上级 4563612f
......@@ -60,7 +60,7 @@ object Implicits {
Utils.debug(s"Caffeine ZStream getIfPresent: identity:[$key],field:[$field],cacheValue:[$cv]")
.unless(ZCaffeine.disabledLog)
))
ret <- ZStream.fromEffect(if (chunk.isEmpty) ZCaffeine.hSet(key, field, result).map(_ => result) else ZIO.succeed(chunk))
ret <- ZStream.fromEffect(if (chunk.isEmpty) ZCaffeine.hSet(key, field, result).as(result) else ZIO.succeed(chunk))
.tap(result => Utils.debug(s"Caffeine ZStream getIfPresent: identity:[$key],field:[$field],result:[$result]")
.unless(ZCaffeine.disabledLog)
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册