Skip to content

Commit

Permalink
literal constants
Browse files Browse the repository at this point in the history
  • Loading branch information
UnbornAztecKing committed Jan 16, 2025
1 parent 0c482e4 commit 1c24dd6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions protocol/streaming/full_node_streaming_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

const (
maxSubscriptionChannelSize = 2 ^ 10
maxSubscriptionChannelSize = 1024
owner = "foo"
noMessagesMaxSleep = 10 * time.Millisecond
)
Expand Down Expand Up @@ -187,7 +187,7 @@ func NewPriceUpdate(
MarketId: 1,
Price: pricestypes.MarketPrice{
Id: 1,
Exponent: 1 ^ -6,
Exponent: 1_000_000,
Price: 1,
},
Snapshot: true,
Expand Down Expand Up @@ -224,12 +224,12 @@ func NewIndexerOrder(id pv1types.IndexerOrderId) pv1types.IndexerOrder {
return pv1types.IndexerOrder{
OrderId: id,
Side: pv1types.IndexerOrder_SIDE_BUY,
Quantums: uint64(10 ^ 6),
Quantums: uint64(1_000_000),
Subticks: 1,
GoodTilOneof: &pv1types.IndexerOrder_GoodTilBlock{
GoodTilBlock: 10 ^ 9,
GoodTilBlock: 1_000_000_000,
},
TimeInForce: 10 ^ 9,
TimeInForce: 1_000_000_000,
ReduceOnly: false,
ClientMetadata: 0,
ConditionType: pv1types.IndexerOrder_CONDITION_TYPE_UNSPECIFIED,
Expand All @@ -241,12 +241,12 @@ func NewOrder(id clobtypes.OrderId) *clobtypes.Order {
return &clobtypes.Order{
OrderId: id,
Side: clobtypes.Order_SIDE_BUY,
Quantums: uint64(10 ^ 6),
Quantums: uint64(1_000_000),
Subticks: 1,
GoodTilOneof: &clobtypes.Order_GoodTilBlock{
GoodTilBlock: 10 ^ 9,
GoodTilBlock: 1_000_000_000,
},
TimeInForce: 10 ^ 9,
TimeInForce: 1_000_000_000,
ReduceOnly: false,
ClientMetadata: 0,
ConditionType: clobtypes.Order_CONDITION_TYPE_UNSPECIFIED,
Expand Down

0 comments on commit 1c24dd6

Please sign in to comment.