revid: simplified comments for sender Write methods

This commit is contained in:
Saxon 2019-03-29 16:24:47 +10:30
parent 8cc7f6e500
commit 86971ca055
1 changed files with 4 additions and 4 deletions

View File

@ -141,7 +141,7 @@ type fileSender struct {
data []byte
}
// Write implements io.Writer. This will attempt to load and send the data given.
// Write implements io.Writer.
func (s *fileSender) Write(d []byte) (int, error) {
err := s.load(d)
if err != nil {
@ -191,7 +191,7 @@ type mtsSender struct {
curPid int
}
// Write implements io.Writer. This will attempt to load and send the data given.
// Write implements io.Writer.
func (s *mtsSender) Write(d []byte) (int, error) {
return write(s, d)
}
@ -379,7 +379,7 @@ func newRtmpSender(url string, timeout uint, retries int, log func(lvl int8, msg
return s, err
}
// Write implements io.Writer. This will attempt to load and send the data given.
// Write implements io.Writer.
func (s *rtmpSender) Write(d []byte) (int, error) {
return write(s, d)
}
@ -433,7 +433,7 @@ type rtpSender struct {
data []byte
}
// Write implements io.Writer. This will attempt to load and send the data given.
// Write implements io.Writer.
func (s *rtpSender) Write(d []byte) (int, error) {
return write(s, d)
}