-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #5545 #5590
Fixes #5545 #5590
Conversation
Tested and it works 👍 |
@@ -574,8 +574,7 @@ func (data *Data) CreateSubscription(database, rp, name, mode string, destinatio | |||
rpi, err := data.RetentionPolicy(database, rp) | |||
if err != nil { | |||
return err | |||
} | |||
if rpi == nil { | |||
} else if rpi == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think golint
prefers not having the else as it was previously written.
minor nit (that I'm not 100% sure on). +1 |
@corylanou |
+1 |
👍 |
Refactor out the
SUBSCRIPTION
tests for some better coverage and clarity. Ensure that a retention policy error will be returned if you attempt to drop a subscription on a policy that doesn't exist.Removed
meta.ErrRetentionPolicyNotFound
since everything else usesinfluxdb. ErrRetentionPolicyNotFound()