Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit 42350ff

Browse files
authored
Fix creating sync subscription for the same path and different methods. Closes #467 (#468)
1 parent 2d9da41 commit 42350ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libkv/subscription.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func (service Service) checkForPathConflict(space, method, path string) error {
170170
return err
171171
}
172172

173-
if sub.Type == subscription.TypeSync {
173+
if sub.Type == subscription.TypeSync && sub.Method == method {
174174
// add existing paths to check
175175
tree.AddRoute(sub.Path, FunctionKey{Space: sub.Space, ID: function.ID("")})
176176
}

0 commit comments

Comments
 (0)