Skip to content

Commit

Permalink
Rename class LocalOpenSearch to LocalSearch
Browse files Browse the repository at this point in the history
We're going to support either Elasticsearch or OpenSearch in
sandbox mode. Rename the class to reflect that.
  • Loading branch information
lpsinger committed Nov 28, 2023
1 parent 8ce2349 commit 44e3ffb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

import { launch } from './run.js'
import type { LocalOpenSearch } from './run.js'
import type { LocalSearch } from './run.js'
import { populate } from './data.js'
import {
cloudformationResources as serverlessCloudformationResources,
Expand Down Expand Up @@ -58,7 +58,7 @@ export const deploy = {
},
}

let local: LocalOpenSearch
let local: LocalSearch

export const sandbox = {
async start({
Expand Down
8 changes: 3 additions & 5 deletions run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
import { pipeline } from 'stream/promises'
import { createReadStream } from 'fs'

export class LocalOpenSearch {
export class LocalSearch {
private readonly child!: ChildProcess
private readonly tempDir!: string
readonly port!: number
Expand Down Expand Up @@ -93,8 +93,6 @@ export class LocalOpenSearch {
}
}

export async function launch(
...args: Parameters<typeof LocalOpenSearch.launch>
) {
return await LocalOpenSearch.launch(...args)
export async function launch(...args: Parameters<typeof LocalSearch.launch>) {
return await LocalSearch.launch(...args)
}

0 comments on commit 44e3ffb

Please sign in to comment.