From 6cb46b4e167937eabbeebc0d0717787d2bf67678 Mon Sep 17 00:00:00 2001 From: matst80 Date: Sun, 12 Oct 2025 23:28:05 +0200 Subject: [PATCH] async append to log --- cart-grain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cart-grain.go b/cart-grain.go index 8998d69..277cfb8 100644 --- a/cart-grain.go +++ b/cart-grain.go @@ -236,7 +236,7 @@ func (c *CartGrain) Apply(content interface{}, isReplay bool) (*CartGrain, error if updated != nil && !isReplay { c.lastChange = time.Now() c.lastAccess = time.Now() - _ = AppendCartEvent(c.Id, content) + go AppendCartEvent(c.Id, content) } return updated, nil