Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

feat(prover): cleanup more database related code #621

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions prover/db/db.go

This file was deleted.

35 changes: 0 additions & 35 deletions prover/db/db_test.go

This file was deleted.

5 changes: 0 additions & 5 deletions prover/guardian_prover_heartbeater/guardian_prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,6 @@ func (s *GuardianProverHeartBeater) signBlock(ctx context.Context, blockID *big.
return signed, header, nil
}

// Close closes the underlying database.
func (s *GuardianProverHeartBeater) Close() error {
return nil
}

// SendHeartbeat sends a heartbeat to the health check server.
func (s *GuardianProverHeartBeater) SendHeartbeat(
ctx context.Context,
Expand Down
1 change: 0 additions & 1 deletion prover/guardian_prover_heartbeater/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ type Heartbeater interface {
type BlockSenderHeartbeater interface {
BlockSigner
Heartbeater
Close() error
}
6 changes: 0 additions & 6 deletions prover/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,6 @@ func (p *Prover) eventLoop() {

// Close closes the prover instance.
func (p *Prover) Close(ctx context.Context) {
if p.guardianProverHeartbeater != nil {
if err := p.guardianProverHeartbeater.Close(); err != nil {
log.Error("failed to close database connection", "error", err)
}
}

if err := p.server.Shutdown(ctx); err != nil {
log.Error("Failed to shut down prover server", "error", err)
}
Expand Down
Loading