Skip to content

Conversation

Abioy
Copy link

@Abioy Abioy commented Mar 10, 2023

try fix concurrent access to ctx.encoders/decoders while marshal map with key type interface{}, as #618 shows

@Abioy
Copy link
Author

Abioy commented Mar 14, 2023

@taowen

@Abioy Abioy changed the title fix: race in dynamicMapKeyEncoder/dynamicMapKeyDecoder fix: data race in dynamicMapKeyEncoder/dynamicMapKeyDecoder Mar 14, 2023
@jake-ciolek
Copy link

FWIW, this fix wasn't functional because of a minor mistake.

I forked it and fixed it by using decoder in getDecoder and addDecoder. Feel free to check it out.

@Abioy
Copy link
Author

Abioy commented Mar 13, 2025

@jake-ciolek nice catch and thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants