mirror of https://bitbucket.org/ausocean/av.git
revid: simplified comments for sender Write methods
This commit is contained in:
parent
8cc7f6e500
commit
86971ca055
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue