fix(ftx): remove unused variables

This commit is contained in:
Jui-Nan Lin 2021-05-24 09:51:00 +08:00
parent 301ed621e6
commit bbeafab59b

View File

@ -21,7 +21,6 @@ type Stream struct {
klineMessage chan types.KLine klineMessage chan types.KLine
exchange *Exchange exchange *Exchange
ctx context.Context ctx context.Context
isConnected bool
// publicOnly can only be configured before connecting // publicOnly can only be configured before connecting
publicOnly int32 publicOnly int32
@ -37,7 +36,6 @@ type Stream struct {
func NewStream(key, secret string, subAccount string, e *Exchange) *Stream { func NewStream(key, secret string, subAccount string, e *Exchange) *Stream {
s := &Stream{ s := &Stream{
exchange: e, exchange: e,
isConnected: false,
key: key, key: key,
klineMessage: make(chan types.KLine), klineMessage: make(chan types.KLine),
secret: secret, secret: secret,
@ -72,7 +70,6 @@ func (s *Stream) Connect(ctx context.Context) error {
return err return err
} }
s.ctx = ctx s.ctx = ctx
s.isConnected = true
s.EmitStart() s.EmitStart()
go s.handleChannelKlineMessage() go s.handleChannelKlineMessage()