From 070b1ae21564c4f75311938c6ad2df0ab8721ef8 Mon Sep 17 00:00:00 2001 From: Saxon Date: Sun, 24 Mar 2019 20:04:35 +1030 Subject: [PATCH] revid: improved commentary --- revid/senders.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/revid/senders.go b/revid/senders.go index cd219712..04c96566 100644 --- a/revid/senders.go +++ b/revid/senders.go @@ -52,6 +52,7 @@ type Sender interface { send(d []byte) error } +// Log is used by the multiSender. type Log func(level int8, message string, params ...interface{}) // multiSender implements io.Writer. It provides the capacity to send to multiple @@ -61,6 +62,7 @@ type multiSender struct { log Log } +// newMultiSender returns a pointer to a new multiSender. func newMultiSender(senders []loadSender, log Log) *multiSender { return &multiSender{ senders: senders,