Skip to content

Commit

Permalink
Fix creating sync subscription for the same path and different methods.
Browse files Browse the repository at this point in the history
Closes #467 (#468)
  • Loading branch information
mthenw authored Jun 25, 2018
1 parent 2d9da41 commit 42350ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libkv/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (service Service) checkForPathConflict(space, method, path string) error {
return err
}

if sub.Type == subscription.TypeSync {
if sub.Type == subscription.TypeSync && sub.Method == method {
// add existing paths to check
tree.AddRoute(sub.Path, FunctionKey{Space: sub.Space, ID: function.ID("")})
}
Expand Down

0 comments on commit 42350ff

Please sign in to comment.