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'