Skip to content

Commit

Permalink
fix: expose identify service properties (libp2p#1529)
Browse files Browse the repository at this point in the history
To satisfy the types these need to be public
  • Loading branch information
achingbrain authored Dec 22, 2022
1 parent 1147550 commit 43d0bc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/identify/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class IdentifyService implements Startable {
private readonly components: IdentifyServiceComponents
private readonly identifyProtocolStr: string
private readonly identifyPushProtocolStr: string
private readonly host: {
public readonly host: {
protocolVersion: string
agentVersion: string
}
Expand Down
2 changes: 1 addition & 1 deletion src/libp2p.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class Libp2pNode extends EventEmitter<Libp2pEvents> implements Libp2p {
public peerId: PeerId
public dht: DualDHT
public pubsub: PubSub
public identifyService?: IdentifyService
public identifyService: IdentifyService
public fetchService: FetchService
public pingService: PingService
public components: Components
Expand Down

0 comments on commit 43d0bc6

Please sign in to comment.