From ade97bcb8fb3871f53adf3f78a0b9701bc96203b Mon Sep 17 00:00:00 2001 From: pingqiu Date: Sun, 15 Nov 2026 04:20:33 -0800 Subject: [PATCH] durable: intent calls on the close-bound remote use pointer receivers On #114 the close-bound remote holds a mutex for the attach context, so the intent wrappers take a pointer like every other bound call; a value receiver copied the lock (go vet copylocks). Co-Authored-By: Claude Opus 5.5 --- seaweed-block/core/frontend/durable/provider_chunk.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seaweed-block/core/frontend/durable/provider_chunk.go b/seaweed-block/core/frontend/durable/provider_chunk.go index 9568a032d8..70aacff0c0 100644 --- a/seaweed-block/core/frontend/durable/provider_chunk.go +++ b/seaweed-block/core/frontend/durable/provider_chunk.go @@ -294,19 +294,19 @@ func (r *closeBoundRemote) Delete(ctx context.Context, key string) error { return r.ChunkRemote.Delete(c, key) } -func (r closeBoundRemote) PutIntent(ctx context.Context, in storage.ChunkIntent) (string, error) { +func (r *closeBoundRemote) PutIntent(ctx context.Context, in storage.ChunkIntent) (string, error) { c, end := r.bind(ctx) defer end() return r.ChunkRemote.PutIntent(c, in) } -func (r closeBoundRemote) DeleteIntent(ctx context.Context, id string) error { +func (r *closeBoundRemote) DeleteIntent(ctx context.Context, id string) error { c, end := r.bind(ctx) defer end() return r.ChunkRemote.DeleteIntent(c, id) } -func (r closeBoundRemote) ListIntents(ctx context.Context) ([]storage.ChunkIntent, error) { +func (r *closeBoundRemote) ListIntents(ctx context.Context) ([]storage.ChunkIntent, error) { c, end := r.bind(ctx) defer end() return r.ChunkRemote.ListIntents(c)