Skip to content

Commit

Permalink
[ENG-2342] unit and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pwilczynskiclearcode committed Jan 8, 2025
1 parent c8cbe79 commit de6fb68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions monitor/census.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func InitCensus(nodeType NodeType, version string) {
census.mAIResultUploadTime = stats.Float64("ai_result_upload_time_seconds", "Upload (to Orchestrator) time", "sec")
census.mAIResultSaveFailed = stats.Int64("ai_result_upload_failed_total", "AIResultUploadFailed", "tot")
census.mAICurrentLivePipelines = stats.Int64("ai_current_live_pipelines", "Number of live AI pipelines currently running", "tot")
census.mAIFirstSegmentDelay = stats.Int64("ai_first_segment_delay", "Delay of the first live AI segment being processed", "ms")
census.mAIFirstSegmentDelay = stats.Int64("ai_first_segment_delay_ms", "Delay of the first live AI segment being processed", "ms")

glog.Infof("Compiler: %s Arch %s OS %s Go version %s", runtime.Compiler, runtime.GOARCH, runtime.GOOS, runtime.Version())
glog.Infof("Livepeer version: %s", version)
Expand Down Expand Up @@ -985,7 +985,7 @@ func InitCensus(nodeType NodeType, version string) {
Aggregation: view.LastValue(),
},
{
Name: "ai_first_segment_delay",
Name: "ai_first_segment_delay_ms",
Measure: census.mAIFirstSegmentDelay,
Description: "Delay of the first live AI segment being processed",
TagKeys: baseTags,
Expand Down
2 changes: 1 addition & 1 deletion server/ai_live_video.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func startTrickleSubscribe(ctx context.Context, url *url.URL, params aiRequestPa
// read segments from trickle subscription
go func() {
var err error
firstSegment := false
firstSegment := true

Check warning on line 141 in server/ai_live_video.go

View check run for this annotation

Codecov / codecov/patch

server/ai_live_video.go#L140-L141

Added lines #L140 - L141 were not covered by tests
defer w.Close()
retries := 0
Expand Down

0 comments on commit de6fb68

Please sign in to comment.