Skip to content

Commit

Permalink
implement as a string format
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh1 committed Nov 15, 2023
1 parent feab144 commit 31350ee
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cmd/webrtc-load-tester/roles/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import (
"context"
"flag"
"fmt"
"log"
"math"
"net/url"
"os"
"path"
"strconv"
Expand Down Expand Up @@ -275,13 +273,7 @@ func playerJobSpec(args loadTestArguments, region string, viewers int, playbackI

playbackURL := ""
if args.Playback.ManifestURL != "" {
u, err := url.Parse(args.Playback.ManifestURL)
if err != nil {
log.Println("failed to parse URL ", args.Playback.ManifestURL, err)
} else {
u = u.JoinPath("video+" + playbackID)
playbackURL = u.String()
}
playbackURL = fmt.Sprintf(args.Playback.ManifestURL, playbackID)
}

return gcloud.JobSpec{
Expand Down

0 comments on commit 31350ee

Please sign in to comment.