aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/encode/prometheus
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp/monlib/encode/prometheus')
-rw-r--r--library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp b/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp
index 29441c88c3..d37961a241 100644
--- a/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp
+++ b/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp
@@ -426,7 +426,7 @@ namespace NMonitoring {
}
TStringBuf ReadToken() {
- Y_VERIFY_DEBUG(CurrentPos_ > 0);
+ Y_DEBUG_ABORT_UNLESS(CurrentPos_ > 0);
size_t begin = CurrentPos_ - 1; // read first byte again
while (HasRemaining() && !IsSpace(CurrentByte_) && CurrentByte_ != '\n') {
ReadNextByteUnsafe();
@@ -439,7 +439,7 @@ namespace NMonitoring {
return "";
}
- Y_VERIFY_DEBUG(CurrentPos_ > 0);
+ Y_DEBUG_ABORT_UNLESS(CurrentPos_ > 0);
size_t begin = CurrentPos_ - 1; // read first byte again
while (HasRemaining()) {
ReadNextByteUnsafe();
@@ -455,7 +455,7 @@ namespace NMonitoring {
return "";
}
- Y_VERIFY_DEBUG(CurrentPos_ > 0);
+ Y_DEBUG_ABORT_UNLESS(CurrentPos_ > 0);
size_t begin = CurrentPos_ - 1; // read first byte again
while (HasRemaining()) {
ReadNextByteUnsafe();
@@ -506,7 +506,7 @@ namespace NMonitoring {
}
TStringBuf TokenFromPos(size_t begin) {
- Y_VERIFY_DEBUG(CurrentPos_ > begin);
+ Y_DEBUG_ABORT_UNLESS(CurrentPos_ > begin);
size_t len = CurrentPos_ - begin - 1;
if (len == 0) {
return {};