github.com/ethersphere/bee/v2@v2.2.0/pkg/puller/mock/puller.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 mock 6 7 import "context" 8 9 type mockSyncer struct{ rate float64 } 10 11 func NewMockRateReporter(r float64) *mockSyncer { return &mockSyncer{r} } 12 func (m *mockSyncer) SyncRate() float64 { return m.rate } 13 func (m *mockSyncer) Start(context.Context) {}