From c74485aa19a4eb3a6210b56dfe082076e6cf55d4 Mon Sep 17 00:00:00 2001 From: lauti7 Date: Wed, 24 Apr 2024 11:37:40 -0300 Subject: [PATCH] ports no longer used --- src/{ports => adapters}/redis.ts | 0 src/{ports => adapters}/ws.ts | 0 src/components.ts | 4 ++-- src/types.ts | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/{ports => adapters}/redis.ts (100%) rename src/{ports => adapters}/ws.ts (100%) diff --git a/src/ports/redis.ts b/src/adapters/redis.ts similarity index 100% rename from src/ports/redis.ts rename to src/adapters/redis.ts diff --git a/src/ports/ws.ts b/src/adapters/ws.ts similarity index 100% rename from src/ports/ws.ts rename to src/adapters/ws.ts diff --git a/src/components.ts b/src/components.ts index 600477d..7d9123e 100644 --- a/src/components.ts +++ b/src/components.ts @@ -12,9 +12,9 @@ import { createPgComponent } from '@well-known-components/pg-component' import { AppComponents, GlobalContext } from './types' import { metricDeclarations } from './metrics' import { createDBComponent } from './adapters/db' -import { createWsComponent } from './ports/ws' +import { createWsComponent } from './adapters/ws' import createRpcServerComponent from './adapters/rpcServer' -import createRedisComponent from './ports/redis' +import createRedisComponent from './adapters/redis' import createPubSubComponent from './adapters/pubsub' // Initialize all the components of the app diff --git a/src/types.ts b/src/types.ts index d9e5ed0..7fb052f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -11,7 +11,7 @@ import { WebSocketServer } from 'ws' import { Emitter } from 'mitt' import { metricDeclarations } from './metrics' import { IDatabaseComponent } from './adapters/db' -import { IRedisComponent } from './ports/redis' +import { IRedisComponent } from './adapters/redis' import { IRPCServerComponent } from './adapters/rpcServer' import { IPubSubComponent } from './adapters/pubsub'