Sign in
apache
/
iggy
/
refs/heads/update_dockerfile
/
.
/
server
/
src
/
streaming
/
streams
/
partitions.rs
blob: 158f71db373e4ecc047c9f558f72c2fca4647a48 [
file
] [
log
] [
blame
]
use
crate
::
streaming
::
streams
::
stream
::
Stream
;
impl
Stream
{
pub
fn
get_partitions_count
(&
self
)
->
u32
{
let
mut
partitions_count
=
0
;
for
topic in
self
.
topics
.
values
()
{
partitions_count
+=
topic
.
get_partitions_count
();
}
partitions_count
}
}