Skip to content

Commit 89b10fd

Browse files
committed
Rename TelegramNotifySink to NotifySink
1 parent 586cb41 commit 89b10fd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/reporter/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl ConfigReporterLog {
7272
.map(|notify_ref| notify_map.get_by_ref(notify_ref).unwrap())
7373
.collect::<Vec<_>>();
7474

75-
let sink = Arc::new(TelegramNotifySink::new(notify));
75+
let sink = Arc::new(NotifySink::new(notify));
7676
let logger = spdlog::default_logger().fork_with(|logger| {
7777
logger.sinks_mut().push(sink);
7878
Ok(())
@@ -124,15 +124,15 @@ pub struct ReporterParams {
124124
// TODO: Make it configurable
125125
const LOG_LEVEL_FILTER: LevelFilter = LevelFilter::MoreSevereEqual(Level::Warn);
126126

127-
struct TelegramNotifySink {
127+
struct NotifySink {
128128
rt: tokio::runtime::Handle,
129129
source: StatusSource,
130130
formatter: Box<dyn Formatter>,
131131
notifiers: Vec<Box<dyn notify::NotifierTrait>>,
132132
no_rec: NoRec,
133133
}
134134

135-
impl TelegramNotifySink {
135+
impl NotifySink {
136136
fn new(notify: Vec<Accessor<notify::NotifierConfig>>) -> Self {
137137
Self {
138138
rt: tokio::runtime::Handle::current(),
@@ -151,7 +151,7 @@ impl TelegramNotifySink {
151151
}
152152
}
153153

154-
impl Sink for TelegramNotifySink {
154+
impl Sink for NotifySink {
155155
fn log(&self, record: &Record) -> spdlog::Result<()> {
156156
if !self.should_log(record.level()) {
157157
return Ok(());

0 commit comments

Comments
 (0)