Skip to content

Commit c2a7946

Browse files
authored
VER: Release 0.49.0
2 parents 95d8f5c + 413dbfa commit c2a7946

5 files changed

Lines changed: 17 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.49.0 - 2026-02-24
4+
5+
### Enhancements
6+
- Added `SkippedRecordsAfterSlowReading` to the `ErrorCode` enum for gateway errors
7+
originating from slow client catch-up
8+
39
## 0.48.0 - 2026-02-18
410

511
### Enhancements

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.24..4.2)
66

77
project(
88
databento
9-
VERSION 0.48.0
9+
VERSION 0.49.0
1010
LANGUAGES CXX
1111
DESCRIPTION "Official Databento client library"
1212
)

include/databento/enums.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,9 @@ enum ErrorCode : std::uint8_t {
632632
InvalidSubscription = 5,
633633
// An error occurred in the gateway.
634634
InternalError = 6,
635+
// A slow client was detected and records were skipped by the gateway to allow
636+
// catching up.
637+
SkippedRecordsAfterSlowReading = 7,
635638
// No error code was specified or this record was upgraded from a version 1 struct
636639
// where the code field didn't exist.
637640
Unset = 255,

pkg/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maintainer: Databento <support@databento.com>
22
_pkgname=databento-cpp
33
pkgname=databento-cpp-git
4-
pkgver=0.48.0
4+
pkgver=0.49.0
55
pkgrel=1
66
pkgdesc="Official C++ client for Databento"
77
arch=('any')

src/enums.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,9 @@ const char* ToString(ErrorCode error_code) {
802802
case ErrorCode::InternalError: {
803803
return "internal_error";
804804
}
805+
case ErrorCode::SkippedRecordsAfterSlowReading: {
806+
return "skipped_records_after_slow_reading";
807+
}
805808
case ErrorCode::Unset: {
806809
return "unset";
807810
}
@@ -1256,6 +1259,9 @@ ErrorCode FromString(const std::string& str) {
12561259
if (str == "internal_error") {
12571260
return ErrorCode::InternalError;
12581261
}
1262+
if (str == "skipped_records_after_slow_reading") {
1263+
return ErrorCode::SkippedRecordsAfterSlowReading;
1264+
}
12591265
if (str == "unset") {
12601266
return ErrorCode::Unset;
12611267
}

0 commit comments

Comments
 (0)