mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
fix(ftx): remove unused variables
This commit is contained in:
parent
301ed621e6
commit
bbeafab59b
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user