Skip to content

server: don't lock models in ApplyModel and DeleteModel #718

Done

Description

@rakyll

ApplyModel and DeleteModel (internal/server/server.go) take a "model" lock around a single store write, but a Model has no Substrate side effects to serialize, and ApplyModel reads the existing metadata before taking the lock anyway. Drop the lock and rely on the store.

Activity

  1. added this to the v0.4.0 milestone on Nov 23, 2026
  2. added a commit that references this issue on Nov 24, 2026
    fe66512
  3. added a commit that references this issue on Nov 24, 2026
    e97bf7a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions