Skip to content

Commit

Permalink
manual changes to correct lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Wanlin <[email protected]>
  • Loading branch information
awanlin committed Sep 28, 2023
1 parent acb611d commit 7246d4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
19 changes: 9 additions & 10 deletions packages/backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
getRootLogger,
loadBackendConfig,
notFoundHandler,
useHotMemoize,
} from '@backstage/backend-common';

import { Config } from '@backstage/config';
Expand Down Expand Up @@ -80,15 +79,15 @@ async function main() {
});
const createEnv = makeCreateEnv(config);

const catalogEnv = useHotMemoize(module, () => createEnv('catalog'));
const authEnv = useHotMemoize(module, () => createEnv('auth'));
const proxyEnv = useHotMemoize(module, () => createEnv('proxy'));
const searchEnv = useHotMemoize(module, () => createEnv('search'));
const techdocsEnv = useHotMemoize(module, () => createEnv('techdocs'));
const todoEnv = useHotMemoize(module, () => createEnv('todo'));
const appEnv = useHotMemoize(module, () => createEnv('app'));
const badgesEnv = useHotMemoize(module, () => createEnv('badges'));
const exploreEnv = useHotMemoize(module, () => createEnv('explore'));
const catalogEnv = createEnv('catalog')
const authEnv = createEnv('auth')
const proxyEnv = createEnv('proxy')
const searchEnv = createEnv('search')
const techdocsEnv = createEnv('techdocs')
const todoEnv = createEnv('todo')
const appEnv = createEnv('app')
const badgesEnv = createEnv('badges')
const exploreEnv = createEnv('explore')

const apiRouter = Router();
apiRouter.use('/catalog', await catalog(catalogEnv));
Expand Down
2 changes: 0 additions & 2 deletions packages/backend/src/plugins/search.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useHotCleanup } from '@backstage/backend-common';
import { createRouter } from '@backstage/plugin-search-backend';
import {
IndexBuilder,
Expand Down Expand Up @@ -51,7 +50,6 @@ export default async function createPlugin({

const { scheduler: indexScheduler } = await indexBuilder.build();
indexScheduler.start();
useHotCleanup(module, () => indexScheduler.stop());

return await createRouter({
engine: indexBuilder.getSearchEngine(),
Expand Down

0 comments on commit 7246d4c

Please sign in to comment.