mirror of
https://github.com/logos-storage/bittorrent-benchmarks.git
synced 2026-02-09 23:43:07 +00:00
fix: minor refactor
This commit is contained in:
parent
3c03910fa1
commit
f30b5d003d
@ -151,9 +151,9 @@ class LogSplitter:
|
||||
|
||||
def split(self, log: Iterable[LogEntry]):
|
||||
for entry in log:
|
||||
self.process_single(entry)
|
||||
self.split_single(entry)
|
||||
|
||||
def process_single(self, entry: LogEntry):
|
||||
def split_single(self, entry: LogEntry):
|
||||
write, _ = self.outputs.get(entry.entry_type, (None, None))
|
||||
|
||||
if write is None:
|
||||
|
||||
@ -18,8 +18,8 @@ NodeId = str
|
||||
|
||||
|
||||
class LogSource(ABC):
|
||||
""":class:`LogSource` knows how to retrieve logs for :class:`Identifiable` experiments, and can answer queries
|
||||
about which experiments are present within it."""
|
||||
""":class:`LogSource` knows how to retrieve logs for experiments within experiment groups, and can answer queries
|
||||
about which experiment ids make up a given group."""
|
||||
|
||||
@abstractmethod
|
||||
def experiments(self, group_id: str) -> Iterator[str]:
|
||||
@ -135,4 +135,4 @@ def split_logs_in_source(
|
||||
|
||||
parsed = log_parser.parse_single(raw_line)
|
||||
if parsed:
|
||||
splitter.process_single(parsed)
|
||||
splitter.split_single(parsed)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user