We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cfeb12 commit 51305d9Copy full SHA for 51305d9
silence/silence.go
@@ -565,9 +565,9 @@ func (s *Silences) Expire(id string) error {
565
//
566
// Set returns an error if a silence is invalid, or would exceed any of the
567
// existing limits. When this happens, a silence might have an ID even though
568
-// the operation failed. It is safe to re-use the silence for subsequent calls
569
-// to Set where previous calls have failed.
570
-func (s *Silences) Set(sil *pb.Silence) (err error) {
+// the operation failed. When this happens the silence cannot be re-used
+// and a new silence must be created.
+func (s *Silences) Set(sil *pb.Silence) error {
571
s.mtx.Lock()
572
defer s.mtx.Unlock()
573
0 commit comments