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 008c351 commit 28e8884Copy full SHA for 28e8884
server/src/metadata.rs
@@ -148,16 +148,18 @@ impl STREAM_INFO {
148
let alerts = storage
149
.get_alerts(&stream.name)
150
.await
151
- .map_err(|_| Error::AlertNotInStore(stream.name.to_owned()))?;
+ .map_err(|_| Error::AlertNotInStore(stream.name.to_owned()));
152
+
153
let schema = storage
154
.get_schema(&stream.name)
155
156
.map_err(|e| e.into())
157
.and_then(parse_string)
158
.map_err(|_| Error::SchemaNotInStore(stream.name.to_owned()))?;
159
160
let metadata = LogStreamMetadata {
161
schema,
- alerts,
162
+ alerts: alerts.unwrap_or_default(),
163
..Default::default()
164
};
165
0 commit comments