mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
rename Reset to private reset
This commit is contained in:
parent
4c0a586aa2
commit
b952e6fd54
|
@ -24,7 +24,7 @@ type DepthFrame struct {
|
|||
pushCallbacks []func(e DepthEvent)
|
||||
}
|
||||
|
||||
func (f *DepthFrame) Reset() {
|
||||
func (f *DepthFrame) reset() {
|
||||
f.mu.Lock()
|
||||
f.SnapshotDepth = nil
|
||||
f.BufEvents = nil
|
||||
|
|
|
@ -175,7 +175,7 @@ func NewStream(client *binance.Client) *Stream {
|
|||
stream.OnConnect(func() {
|
||||
// reset the previous frames
|
||||
for _, f := range stream.depthFrames {
|
||||
f.Reset()
|
||||
f.reset()
|
||||
f.loadDepthSnapshot()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user