Sign in
apache
/
iggy
/
refs/heads/docker-keyring
/
.
/
server
/
src
/
streaming
/
streams
/
segments.rs
blob: 5fd16187261817efda0024a5d49d746f29594207 [
file
]
use
crate
::
streaming
::
streams
::
stream
::
Stream
;
impl
Stream
{
pub
async
fn
get_segments_count
(&
self
)
->
u32
{
let
mut
segments_count
=
0
;
for
topic in
self
.
topics
.
values
()
{
segments_count
+=
topic
.
get_segments_count
().
await
;
}
segments_count
}
}