Remove unnecessary Close() overrides from subscribers

This commit is contained in:
Daniel Pupius committed 2025-04-21 09:18:16 -07:00
1 parent b52834dd8a
commit 7c311b3386
2 files changed
-10

No files matched your search

-5
View File
@@ -122,8 +122,3 @@ func (ml *MessageLogger) logMessage(packet *Packet) {
}
}
// Close overrides the BaseSubscriber.Close method
func (ml *MessageLogger) Close() {
// Call the base close method which will handle unsubscribe and closeLogFiles
ml.BaseSubscriber.Close()
}
-5
View File
@@ -103,8 +103,3 @@ func (s *MessageStats) PrintStats() {
s.LastStatsPrinted = now
}
// Close overrides the BaseSubscriber.Close method
func (s *MessageStats) Close() {
// Call the base close method which will handle unsubscribe and stop the ticker
s.BaseSubscriber.Close()
}