Skip to content

Commit 6b2e983

Browse files
authored
Merge pull request #26 from Clarilab/fix-atomic-command-handler
fix[commandhandler/aggregate]: atomic command handler
2 parents 8fc1032 + 610c00c commit 6b2e983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commandhandler/aggregate/commandhandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func WithUseAtomic() Option {
7777
func (h *CommandHandler) HandleCommand(ctx context.Context, cmd eh.Command) error {
7878
if h.useAtomic {
7979
h.rwMutex.RLock()
80-
_, ok := h.a[cmd.AggregateType().String()]
80+
_, ok := h.a[cmd.AggregateID().String()]
8181
h.rwMutex.RUnlock()
8282

8383
if !ok {

0 commit comments

Comments
 (0)