From cd8716949b9645256ed2a2aec0639afe66b94d04 Mon Sep 17 00:00:00 2001 From: Sacha Froment Date: Thu, 9 Jan 2025 15:25:52 +0100 Subject: [PATCH] fix: add missing service capabilities Signed-off-by: Sacha Froment --- packages/pubsub-floodsub/src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/pubsub-floodsub/src/index.ts b/packages/pubsub-floodsub/src/index.ts index eb18207788..99745902df 100644 --- a/packages/pubsub-floodsub/src/index.ts +++ b/packages/pubsub-floodsub/src/index.ts @@ -32,7 +32,7 @@ * ``` */ -import { pubSubSymbol, serviceDependencies } from '@libp2p/interface' +import { pubSubSymbol, serviceCapabilities, serviceDependencies } from '@libp2p/interface' import { PubSubBaseProtocol, type PubSubComponents } from '@libp2p/pubsub' import { toString } from 'uint8arrays/to-string' import { SimpleTimeCache } from './cache.js' @@ -82,6 +82,10 @@ class FloodSub extends PubSubBaseProtocol { readonly [Symbol.toStringTag] = '@libp2p/floodsub' + readonly [serviceCapabilities]: string[] = [ + '@libp2p/pubsub' + ] + readonly [serviceDependencies]: string[] = [ '@libp2p/identify' ]