Skip to content

Commit

Permalink
Merge pull request #2513 from OffchainLabs/das-change-healthcheck-data
Browse files Browse the repository at this point in the history
Change the test data stored by das fs healthcheck
  • Loading branch information
Tristan-Wilson authored Jul 24, 2024
2 parents 035a10a + 1269c85 commit 54b48bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions das/local_file_storage_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,15 @@ func (s *LocalFileStorageService) String() string {
}

func (s *LocalFileStorageService) HealthCheck(ctx context.Context) error {
testData := []byte("Test-Data")
testData := []byte("Test Data")
// Store some data with an expiry time at the start of the epoch.
// If expiry is disabled it will only create an index entry for the
// same timestamp each time the health check happens.
// If expiry is enabled, it will be cleaned up each time the pruning
// runs. There is a slight chance of a race between pruning and the
// Put and Get calls, but systems using the HealthCheck will just retry
// and succeed the next time.
err := s.Put(ctx, testData /* start of epoch */, 0)
err := s.Put(ctx, testData, 0 /* start of epoch */)
if err != nil {
return err
}
Expand Down

0 comments on commit 54b48bb

Please sign in to comment.