Skip to content

Commit 9c2a712

Browse files
committed
fix build: utils::span usage in userver ydb client
commit_hash:c8d08cde39f8b8c443e3b7a88f04e67ecda9c0c8
1 parent ca356eb commit 9c2a712

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ydb/src/ydb/impl/native_metrics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class WriterMetricConsumer final : public NMonitoring::IMetricConsumer {
123123
for (std::size_t i = 0; i < count - 1; ++i) {
124124
bounds_storage_[i] = snapshot->UpperBound(i);
125125
}
126-
histogram_storage_.emplace(bounds_storage_);
126+
histogram_storage_.emplace(utils::span(bounds_storage_.data(), bounds_storage_.size()));
127127
for (std::size_t i = 0; i < count - 1; ++i) {
128128
histogram_storage_->AccountAt(i, snapshot->Value(i));
129129
}

0 commit comments

Comments
 (0)