github.com/ethersphere/bee/v2@v2.2.0/pkg/p2p/libp2p/internal/blocklist/export_test.go (about) 1 // Copyright 2020 The Swarm Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package blocklist 6 7 import ( 8 "github.com/ethersphere/bee/v2/pkg/storage" 9 ) 10 11 func NewBlocklistWithCurrentTimeFn(store storage.StateStorer, currentTimeFn currentTimeFn) *Blocklist { 12 return &Blocklist{ 13 store: store, 14 currentTimeFn: currentTimeFn, 15 } 16 }