Skip to content

Commit

Permalink
Spell check
Browse files Browse the repository at this point in the history
  • Loading branch information
seanavery committed Sep 23, 2024
1 parent fb50e68 commit 03ea3cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions cam/cam.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func (vs *videostore) DoCommand(_ context.Context, command map[string]interface{
// is written to storage before concatenation.
// TODO: (seanp) Optimize this to immediately run as soon as the current segment is completed.
if async {
vs.logger.Debug("run save command asynchronously")
vs.logger.Debug("running save command asynchronously")
go func() {
time.Sleep(vs.conc.segmentDur)
err = vs.conc.concat(from, to, uploadFilePath)
Expand All @@ -305,7 +305,6 @@ func (vs *videostore) DoCommand(_ context.Context, command map[string]interface{
}, nil
case "fetch":
vs.logger.Debug("fetch command received")

from, to, err := validateFetchCommand(command)
if err != nil {
return nil, err
Expand All @@ -327,7 +326,6 @@ func (vs *videostore) DoCommand(_ context.Context, command map[string]interface{
if err != nil {
return nil, err
}
// TODO(seanp): Delete the temp file after reading the bytes.
vs.logger.Debug("video bytes: ", len(videoBytes))
// TODO(seanp): Do we need to encode the video bytes to base64?
videoBytesBase64 := base64.StdEncoding.EncodeToString(videoBytes)
Expand Down
4 changes: 2 additions & 2 deletions cam/concater.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (c *concater) concat(from, to time.Time, path string) error {

// cleanupConcatTxtFiles cleans up the concat txt files in the tmp directory.
// This is precautionary to ensure that no dangling files are left behind if the
// module is closes during a concat operation.
// module is closed during a concat operation.
func (c *concater) cleanupConcatTxtFiles() error {
pattern := fmt.Sprintf(conactTxtFilePattern, "*")
files, err := filepath.Glob(filepath.Join(concatTxtDir, pattern))
Expand All @@ -231,7 +231,7 @@ func (c *concater) cleanupConcatTxtFiles() error {
}

// generateConcatFilePath generates a unique file name for concat txt reference file.
// This allows multiple concats to be done concurrently without conflicts.
// This allows multiple concats to be run concurrently without conflicts.
func generateConcatFilePath() string {
uniqueID := uuid.New().String()
fileName := fmt.Sprintf(conactTxtFilePattern, uniqueID)
Expand Down

0 comments on commit 03ea3cc

Please sign in to comment.