Skip to content

Commit

Permalink
feat: remove automatic pit
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Oct 16, 2024
1 parent 908278c commit 6b0e913
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions internal/api/v2/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func getPITOOTFilter(r *http.Request) (*ledgercontroller.PITFilter, error) {
pitString := r.URL.Query().Get("endTime")
ootString := r.URL.Query().Get("startTime")

pit := time.Now()
pit := time.Time{}
oot := time.Time{}

if pitString != "" {
Expand Down Expand Up @@ -49,8 +49,7 @@ func getPITOOTFilter(r *http.Request) (*ledgercontroller.PITFilter, error) {
func getPITFilter(r *http.Request) (*ledgercontroller.PITFilter, error) {
pitString := r.URL.Query().Get("pit")

pit := time.Now()

pit := time.Time{}
if pitString != "" {
var err error
pit, err = time.ParseTime(pitString)
Expand Down
6 changes: 2 additions & 4 deletions test/e2e/stress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ var _ = Context("Ledger stress tests", func() {
err := CreateLedger(ctx, testServer.GetValue(), operations.V2CreateLedgerRequest{
Ledger: ledgerName,
V2CreateLedgerRequest: &components.V2CreateLedgerRequest{
Bucket: &bucketName,
Features: ledger.MinimalFeatureSet.
// todo: as we are interested only by aggregated volumes at current date, these features should not be required
With(ledger.FeatureMovesHistory, "ON"),
Bucket: &bucketName,
Features: ledger.MinimalFeatureSet,
},
})
Expect(err).ShouldNot(HaveOccurred())
Expand Down

0 comments on commit 6b0e913

Please sign in to comment.