@@ -27,10 +27,7 @@ import {
2727 setClientConfig ,
2828 updateUserCapability
2929} from '../features/featuresDuck'
30- import {
31- canSendTxMetadata ,
32- getDbClusterRole
33- } from '../features/versionedFeatures'
30+ import { getDbClusterRole } from '../features/versionedFeatures'
3431import { update , updateMeta , updateServerInfo , updateSettings } from './actions'
3532import {
3633 CLEAR_META ,
@@ -70,7 +67,7 @@ import {
7067 useDb
7168} from 'shared/modules/connections/connectionsDuck'
7269import { clearHistory } from 'shared/modules/history/historyDuck'
73- import { getBackgroundTxMetadata } from 'shared/services/bolt/txMetadata'
70+ import { backgroundTxMetadata } from 'shared/services/bolt/txMetadata'
7471import { isOnCausalCluster } from 'shared/utils/selectors'
7572
7673const databaseList = ( store : any ) =>
@@ -86,9 +83,7 @@ const databaseList = (store: any) =>
8683 'SHOW DATABASES' ,
8784 { } ,
8885 {
89- ...getBackgroundTxMetadata ( {
90- hasServerSupport : canSendTxMetadata ( store . getState ( ) )
91- } ) ,
86+ ...backgroundTxMetadata ,
9287 useDb : SYSTEM_DB
9388 }
9489 )
@@ -134,9 +129,7 @@ const getLabelsAndTypes = (store: any) =>
134129 { } ,
135130 {
136131 onLostConnection : onLostConnection ( store . dispatch ) ,
137- ...getBackgroundTxMetadata ( {
138- hasServerSupport : canSendTxMetadata ( store . getState ( ) )
139- } )
132+ ...backgroundTxMetadata
140133 }
141134 )
142135 )
@@ -163,9 +156,7 @@ const clusterRole = (store: any) =>
163156 getDbClusterRole ( store . getState ( ) ) ,
164157 { } ,
165158 {
166- ...getBackgroundTxMetadata ( {
167- hasServerSupport : canSendTxMetadata ( store . getState ( ) )
168- } )
159+ ...backgroundTxMetadata
169160 }
170161 )
171162 . then ( resolve )
@@ -301,9 +292,7 @@ export const serverConfigEpic = (some$: any, store: any) =>
301292 { } ,
302293 {
303294 useDb : supportsMultiDb ? SYSTEM_DB : '' ,
304- ...getBackgroundTxMetadata ( {
305- hasServerSupport : canSendTxMetadata ( store . getState ( ) )
306- } )
295+ ...backgroundTxMetadata
307296 }
308297 )
309298 . then ( ( r : any ) => {
@@ -325,9 +314,7 @@ export const serverConfigEpic = (some$: any, store: any) =>
325314 { } ,
326315 {
327316 useDb : supportsMultiDb ? SYSTEM_DB : '' ,
328- ...getBackgroundTxMetadata ( {
329- hasServerSupport : canSendTxMetadata ( store . getState ( ) )
330- } )
317+ ...backgroundTxMetadata
331318 }
332319 )
333320 . then ( resolve )
@@ -409,9 +396,7 @@ export const serverInfoEpic = (some$: any, store: any) =>
409396 query ,
410397 { } ,
411398 {
412- ...getBackgroundTxMetadata ( {
413- hasServerSupport : canSendTxMetadata ( store . getState ( ) )
414- } )
399+ ...backgroundTxMetadata
415400 }
416401 )
417402 )
0 commit comments