Skip to content

SetAttrs does not handle concurrent writes #65

@techfg

Description

@techfg

While potentially unlikely, calling SetAttrs could occur simultaneously from multiple go-routines, however access to the underlying slice of []slog.Attr is not protected from concurrent access.

At the very least I believe this should be mentioned in the documentation but likely should be addressed to ensure data integrity.

Happy to submit a PR if there is an appetite to address this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions