Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Leblow committed May 8, 2024
1 parent 06dee86 commit c98b93e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/backend/src/nest/libp2p/libp2p.module.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { Module } from '@nestjs/common'
import { SocketModule } from '../socket/socket.module'
import { Libp2pService } from './libp2p.service'
import { ProcessInChunksService } from './process-in-chunks.service'

@Module({
imports: [SocketModule],
providers: [Libp2pService, ProcessInChunksService],
exports: [Libp2pService],
})
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/nest/socket/socket.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ export class SocketService extends EventEmitter implements OnModuleInit {

async onModuleInit() {
this.logger('init: Started')

await this.init()

this.logger('init: Finished')
}

Expand All @@ -77,6 +75,8 @@ export class SocketService extends EventEmitter implements OnModuleInit {
}

private readonly attachListeners = () => {
this.logger('Attaching listeners')

// Attach listeners here
this.serverIoProvider.io.on(SocketActionTypes.CONNECTION, socket => {
this.logger('Socket connection')
Expand Down
1 change: 1 addition & 0 deletions packages/backend/src/nest/storage/storage.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ export class StorageService extends EventEmitter {
return
}
try {
this.logger('Sending message:', message.id)
await repo.db.add(message)
} catch (e) {
this.logger.error(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export function* sendMessageSaga(
yield* take(publicChannelsActions.setChannelSubscribed)
}

console.log('Emitting SEND_MESSAGE', id)
yield* apply(
socket,
socket.emit,
Expand Down

0 comments on commit c98b93e

Please sign in to comment.