From 05d0a64b089bdef1db9e3bbc9b583d1061338079 Mon Sep 17 00:00:00 2001 From: Snider Date: Tue, 24 Mar 2026 20:09:06 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20WithServiceLock=20enables,=20New()=20app?= =?UTF-8?q?lies=20after=20all=20opts=20=E2=80=94=20v0.3.3=20parity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Virgil --- contract.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contract.go b/contract.go index 357d1de..6c89053 100644 --- a/contract.go +++ b/contract.go @@ -115,6 +115,9 @@ func New(opts ...CoreOption) Result { } } + // Apply service lock after all opts — v0.3.3 parity + c.LockApply() + return Result{c, true} } @@ -227,7 +230,6 @@ func WithOption(key string, value any) CoreOption { func WithServiceLock() CoreOption { return func(c *Core) Result { c.LockEnable() - c.LockApply() return Result{OK: true} } }