Skip to content

core/syncx/shardcalls.go中done与delete优先级 #337

Closed
@Howie59

Description

https://github.com/tal-tech/go-zero/blob/fc43876cc591fb422943814efbb58bb8e2e68131/core/syncx/sharedcalls.go#L73

这个地方可以先调用done,然后再进行key的delete的

源码中wait()有如下注释:Wait blocks until the WaitGroup counter is zero.

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