mirror of https://bitbucket.org/ausocean/av.git
running go fmt over repos
This commit is contained in:
parent
528733c559
commit
27c90ad852
|
@ -50,7 +50,7 @@ func NewClient(addr string) (c *Client, local, remote *net.TCPAddr, err error) {
|
|||
c = &Client{addr: addr}
|
||||
c.url, err = url.Parse(addr)
|
||||
if err != nil {
|
||||
return nil, nil,nil, err
|
||||
return nil, nil, nil, err
|
||||
}
|
||||
c.conn, err = net.Dial("tcp", c.url.Host)
|
||||
if err != nil {
|
||||
|
|
|
@ -69,7 +69,7 @@ func (r *Revid) reset(c config.Config) error {
|
|||
r.cfg.Logger.Log(logger.Debug, "setting config")
|
||||
err := r.setConfig(c)
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not set config: %w",err)
|
||||
return fmt.Errorf("could not set config: %w", err)
|
||||
}
|
||||
r.cfg.Logger.Log(logger.Info, "config set")
|
||||
|
||||
|
@ -95,7 +95,7 @@ func (r *Revid) reset(c config.Config) error {
|
|||
encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second))
|
||||
r.cfg.CBR = true
|
||||
case codecutil.PCM, codecutil.ADPCM:
|
||||
return nil, errors.New(fmt.Sprintf("invalid input codec: %v for input: %v",r.cfg.InputCodec,r.cfg.Input))
|
||||
return nil, errors.New(fmt.Sprintf("invalid input codec: %v for input: %v", r.cfg.InputCodec, r.cfg.Input))
|
||||
default:
|
||||
panic("unknown input codec")
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ func (r *Revid) reset(c config.Config) error {
|
|||
r.cfg.Logger.Log(logger.Info, "finished setting pipeline")
|
||||
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not set up pipeline: %w",err)
|
||||
return fmt.Errorf("could not set up pipeline: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
@ -282,7 +282,7 @@ func (r *Revid) setupPipeline(mtsEnc func(dst io.WriteCloser, rate float64) (io.
|
|||
err = r.setupAudio()
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not set lexer: %w",err)
|
||||
return fmt.Errorf("could not set lexer: %w", err)
|
||||
}
|
||||
|
||||
// Configure the input device. We know that defaults are set, so no need to
|
||||
|
|
Loading…
Reference in New Issue