aboutsummaryrefslogtreecommitdiff
path: root/commands/pwd.go
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-05-19 09:50:21 +0000
committerDrew DeVault <sir@cmpwn.com>2019-05-19 11:51:25 -0400
commit248345d875e958b70f48797bfe6e822cc9485eb8 (patch)
tree4c46736cc4d1c80c661203c275a77d06ae0afa28 /commands/pwd.go
parentf27db333052aa24a0aad135c09ce7969bf31bc56 (diff)
worker/types/worker: remove mutex
Worker.callbacks contains two types of callbacks: some are action callbacks, some are message callbacks. Each of those is access from one side of the communication channel (UI goroutine vs. worker goroutine). Instead of using a channel, we can use two different maps for each kind. This simplifies the code and also ensures we don't call an action callback instead of a message callback (or the other way around).
Diffstat (limited to 'commands/pwd.go')
0 files changed, 0 insertions, 0 deletions