Skip to content
This repository was archived by the owner on Jan 25, 2026. It is now read-only.
This repository was archived by the owner on Jan 25, 2026. It is now read-only.

Make the server state read-only #6

@pascalj

Description

@pascalj

Currently, the server can be accessed via an Arc<RWLock<ServerState>> inside the handlers. That is to allow the clients to change the server state.

However, it would be cleaner if clients could merely create a new server state (e.g. with an updated cache key or so) and then the server re-initializes with this state. This would get remove the annoying shared state while still allowing the clients to configure the server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions