Skip to content

Commit

Permalink
Remove sleeps to allow all data to be processed
Browse files Browse the repository at this point in the history
I can't replicate the CPU spikes anymore so these no longer have any
purpose.
  • Loading branch information
karashiiro committed Sep 24, 2022
1 parent cb5ebac commit 65d10f5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions cmd/velcro/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"fmt"
"io"
"os"
"time"

"entgo.io/ent/dialect"
"github.com/velcro-xiv/velcro/db"
Expand Down Expand Up @@ -46,7 +45,6 @@ func main() {
logger.LogError(context.Background(), fmt.Sprintf("failed reading standard input: %v", err))
}

time.Sleep(time.Second)
continue
}

Expand Down
3 changes: 0 additions & 3 deletions db/archiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package db
import (
"context"
"fmt"
"time"

"github.com/velcro-xiv/velcro/ent"
)
Expand Down Expand Up @@ -56,8 +55,6 @@ func (a *Archiver) Process() {
if err != nil {
a.logger.LogError(context.Background(), fmt.Sprintf("failed to store record: %v\n", err))
}
default:
time.Sleep(time.Second)
}
}

Expand Down

0 comments on commit 65d10f5

Please sign in to comment.