Skip to content

Commit 5326ce8

Browse files
committed
chore: comments
1 parent 8c54d8d commit 5326ce8

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/utils.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -153,24 +153,6 @@ export function filterOptions(options: AnyOptions, names: ReadonlyArray<string>)
153153
return filterOptions;
154154
}
155155

156-
interface HasRetryableWrites {
157-
retryWrites?: boolean;
158-
}
159-
/**
160-
* Applies retryWrites: true to a command if retryWrites is set on the command's database.
161-
* @internal
162-
*
163-
* @param target - The target command to which we will apply retryWrites.
164-
* @param db - The database from which we can inherit a retryWrites value.
165-
*/
166-
export function applyRetryableWrites<T extends HasRetryableWrites>(target: T, db?: Db): T {
167-
if (db && db.s.options?.retryWrites) {
168-
target.retryWrites = true;
169-
}
170-
171-
return target;
172-
}
173-
174156
/**
175157
* Applies a write concern to a command based on well defined inheritance rules, optionally
176158
* detecting support for the write concern in the first place.

0 commit comments

Comments
 (0)