Skip to content

[BUG] .Get() — fatal error: concurrent map writes #287

Description

@woozie

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Hello

Please tell me, is this a bug or planned behavior?

I have a project with GraphQL subscriptions and sometimes when several subscriptions are launched at the same time I get this error

Image

Or should i make mutexes myself?

Expected Behavior

No response

Steps To Reproduce

I have similar code like below in all 3 event publishers

session := sessions.Default(ginContext)
userId := session.Get(awConfig.SessionKeyUserId).(uint)
status := make(chan *model.CustomerTypingStatus, 1)
uniqueEventUuid := uuid.NewString()

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions