File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -114,19 +114,20 @@ function main() {
114
114
] . join ( '\n' ) ;
115
115
console . log ( systemInfo ( ) ) ;
116
116
117
+ const mongoCryptOptions = { kmsProviders : BSON . serialize ( kmsProviders ) } ;
118
+ if ( ! BENCH_WITH_NATIVE_CRYPTO ) mongoCryptOptions . cryptoCallbacks = cryptoCallbacks ;
119
+ if ( cryptSharedLibPath ) mongoCryptOptions . cryptSharedLibPath = cryptSharedLibPath ;
120
+
121
+ const mongoCrypt = new MongoCrypt ( mongoCryptOptions ) ;
122
+
117
123
console . log (
118
124
`BenchmarkRunner is using ` +
119
125
`libmongocryptVersion=${ MongoCrypt . libmongocryptVersion } , ` +
126
+ `cryptoHooks=${ mongoCrypt . cryptoHooksProvider } , ` +
120
127
`warmupSecs=${ warmupSecs } , ` +
121
128
`testInSecs=${ testInSecs } `
122
129
) ;
123
130
124
- const mongoCryptOptions = { kmsProviders : BSON . serialize ( kmsProviders ) } ;
125
- if ( ! BENCH_WITH_NATIVE_CRYPTO ) mongoCryptOptions . cryptoCallbacks = cryptoCallbacks ;
126
- if ( cryptSharedLibPath ) mongoCryptOptions . cryptSharedLibPath = cryptSharedLibPath ;
127
-
128
- const mongoCrypt = new MongoCrypt ( mongoCryptOptions ) ;
129
-
130
131
const encrypted = createEncryptedDocument ( mongoCrypt ) ;
131
132
const toDecrypt = BSON . serialize ( encrypted ) ;
132
133
You can’t perform that action at this time.
0 commit comments