Live video on the AT Protocol

livepeer: better -tags mainnet checking

+11 -4
+2 -3
meson.build
··· 289 289 command: [ 290 290 prog_go, 291 291 'build', 292 - '-tags', 'mainnet', 293 292 '-o', '@OUTPUT0@', 294 293 '-buildmode', 'c-archive', 295 - '-tags', 'netgo,static', 294 + '-tags', 'netgo,static,mainnet', 296 295 '@INPUT@', 297 296 ], 298 297 build_always_stale: true, ··· 319 318 prog_go, 320 319 'build', 321 320 '-o', '@OUTPUT0@', 322 - '-tags', 'netgo,static', 321 + '-tags', 'netgo,static,mainnet', 323 322 'streamplace.go', 324 323 '@INPUT1@' 325 324 ],
+9 -1
pkg/cmd/streamplace.go
··· 525 525 return err 526 526 } 527 527 group.Go(func() error { 528 - return GoLivepeer(ctx, fs) 528 + err := GoLivepeer(ctx, fs) 529 + if err != nil { 530 + return err 531 + } 532 + // livepeer returns nil on error, so we need to check if we're responsible 533 + if ctx.Err() == nil { 534 + return fmt.Errorf("livepeer exited") 535 + } 536 + return nil 529 537 }) 530 538 } 531 539