Set correct type

This commit is contained in:
2024-04-14 21:30:51 +02:00
parent eae84fef1f
commit b098385e39
3 changed files with 13 additions and 6 deletions

View File

@@ -4,10 +4,9 @@ defmodule KafkaexLagExporter.ConsumerOffsetFetcher do
alias KafkaexLagExporter.ConsumerOffset
alias KafkaexLagExporter.KafkaUtils
# TODO fix type
@spec get(KafkaexLagExporter.KafkaWrapper.Behaviour.endpoint()) :: %{
lags: list(binary),
sum: list(binary)
lags: list(ConsumerOffset.t()),
sum: list(ConsumerOffset.t())
}
def get(endpoint) do
consumer_group_names = KafkaUtils.get_consumer_group_names(endpoint)