explicility set commitment for order subscriber
This commit is contained in:
@@ -229,11 +229,13 @@ const main = async () => {
|
|||||||
if (useWebsocket) {
|
if (useWebsocket) {
|
||||||
subscriptionConfig = {
|
subscriptionConfig = {
|
||||||
type: 'websocket',
|
type: 'websocket',
|
||||||
|
commitment: stateCommitment,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
subscriptionConfig = {
|
subscriptionConfig = {
|
||||||
type: 'polling',
|
type: 'polling',
|
||||||
frequency: ORDERBOOK_UPDATE_INTERVAL,
|
frequency: ORDERBOOK_UPDATE_INTERVAL,
|
||||||
|
commitment: stateCommitment,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -126,10 +126,12 @@ const main = async () => {
|
|||||||
if (useWebsocket) {
|
if (useWebsocket) {
|
||||||
subscriptionConfig = {
|
subscriptionConfig = {
|
||||||
type: 'websocket',
|
type: 'websocket',
|
||||||
|
commitment: stateCommitment,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
subscriptionConfig = {
|
subscriptionConfig = {
|
||||||
type: 'polling',
|
type: 'polling',
|
||||||
|
commitment: stateCommitment,
|
||||||
frequency: ORDERBOOK_UPDATE_INTERVAL,
|
frequency: ORDERBOOK_UPDATE_INTERVAL,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user