Skip to content

Commit

Permalink
address rebase conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardmack committed Jan 10, 2024
1 parent 6fda41a commit 4f69f58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dot/parachain/availability-store/availability_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"encoding/binary"
"errors"
"fmt"
"sync"
"time"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
Expand Down Expand Up @@ -58,7 +59,7 @@ func (sc *subsystemClock) Now() timestamp {
// pruningConfig Struct holding pruning timing configuration.
// The only purpose of this structure is to use different timing
// configurations in production and in testing.
type PruningConfig struct {
type pruningConfig struct {
keepUnavailableFor time.Duration
keepFinalizedFor time.Duration
pruningInterval time.Duration
Expand Down Expand Up @@ -715,3 +716,8 @@ func (av *AvailabilityStoreSubsystem) handleStoreAvailableData(msg StoreAvailabl
}
return nil
}

func (av *AvailabilityStoreSubsystem) Stop() {
av.cancel()
av.wg.Wait()
}
1 change: 1 addition & 0 deletions dot/parachain/availability-store/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ func Register(overseerChan chan<- any, st *state.Service) (*AvailabilityStoreSub
availabilityStore := NewAvailabilityStore(st.DB())

availabilityStoreSubsystem := AvailabilityStoreSubsystem{
pruningConfig: defaultPruningConfig,
SubSystemToOverseer: overseerChan,
availabilityStore: *availabilityStore,
}
Expand Down

0 comments on commit 4f69f58

Please sign in to comment.