File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -191,8 +191,8 @@ func (stream *exemplarsStream) receive(ctx context.Context) error {
191
191
if err := stream .server .Send (exemplarspb .NewWarningExemplarsResponse (err )); err != nil {
192
192
return errors .Wrapf (err , "sending exemplars error to server %v" , stream .server )
193
193
}
194
-
195
- continue
194
+ // Not an error if response strategy is warning.
195
+ return nil
196
196
}
197
197
198
198
if w := exemplar .GetWarning (); w != "" {
Original file line number Diff line number Diff line change @@ -135,7 +135,8 @@ func (stream *metricMetadataStream) receive(ctx context.Context) error {
135
135
return errors .Wrapf (err , "sending metadata error to server %v" , stream .server )
136
136
}
137
137
138
- continue
138
+ // Not an error if response strategy is warning.
139
+ return nil
139
140
}
140
141
141
142
if w := resp .GetWarning (); w != "" {
Original file line number Diff line number Diff line change @@ -119,8 +119,8 @@ func (stream *targetsStream) receive(ctx context.Context) error {
119
119
if err := stream .server .Send (targetspb .NewWarningTargetsResponse (err )); err != nil {
120
120
return errors .Wrapf (err , "sending targets error to server %v" , stream .server )
121
121
}
122
-
123
- continue
122
+ // Not an error if response strategy is warning.
123
+ return nil
124
124
}
125
125
126
126
if w := target .GetWarning (); w != "" {
You can’t perform that action at this time.
0 commit comments