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

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Sep 28, 2023
1 parent b1aa46f commit 33c7449
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions prover/capacity_manager/capacity_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,15 @@ package capacity_manager

import (
"sync"
"time"

"github.com/ethereum/go-ethereum/log"
)

type tempCapacity struct {
createdAt time.Time
}

// CapacityManager manages the prover capacity concurrent-safely.
type CapacityManager struct {
capacity map[uint64]bool
tempCapacity []tempCapacity
maxCapacity uint64
mutex sync.RWMutex
capacity map[uint64]bool
maxCapacity uint64
mutex sync.RWMutex
}

// New creates a new CapacityManager instance.
Expand Down

0 comments on commit 33c7449

Please sign in to comment.