rename Reset to private reset

This commit is contained in:
c9s 2021-01-25 14:26:22 +08:00
parent 4c0a586aa2
commit b952e6fd54
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()
}