revid: improved commentary

This commit is contained in:
Saxon 2019-03-24 20:04:35 +10:30
parent e7c6b7319b
commit 070b1ae215
1 changed files with 2 additions and 0 deletions

View File

@ -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,