Skip to content

Use new sync Map in Go 1.9 #269

Open
@jcscottiii

Description

Previously, we created maps with a manually maintained mutex:
Example here:

type standardsMap struct {
mapping map[string]common.Standard
sync.RWMutex
}

(there's more cases throughout the code too)

Now, with Go 1.9, there's a map that's safe for concurrent access:
https://golang.org/doc/go1.9#sync-map

Activity

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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions