Skip to content

Commit

Permalink
rm prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Oct 5, 2024
1 parent 1566af5 commit 9c356c8
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 39 deletions.
1 change: 0 additions & 1 deletion examples/chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@topology-foundation/object": "0.2.0",
"assemblyscript": "^0.27.29",
"crypto-browserify": "^3.12.0",
"memfs": "^4.11.1",
"process": "^0.11.10",
"stream-browserify": "^3.0.0",
"ts-node": "^10.9.2",
Expand Down
1 change: 0 additions & 1 deletion examples/chat/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default defineConfig({
plugins: [
nodePolyfills({
overrides: {
fs: "memfs",
},
}),
],
Expand Down
1 change: 0 additions & 1 deletion packages/network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"@libp2p/identify": "^3.0.2",
"@libp2p/mdns": "^11.0.1",
"@libp2p/peer-id": "^5.0.2",
"@libp2p/prometheus-metrics": "^4.2.0",
"@libp2p/pubsub-peer-discovery": "^11.0.0",
"@libp2p/webrtc": "^5.0.4",
"@libp2p/websockets": "^9.0.2",
Expand Down
7 changes: 3 additions & 4 deletions packages/network/src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import type {
Stream,
StreamHandler,
} from "@libp2p/interface";
import { prometheusMetrics } from "@libp2p/prometheus-metrics";
import { pubsubPeerDiscovery } from "@libp2p/pubsub-peer-discovery";
import { webRTC, webRTCDirect } from "@libp2p/webrtc";
import { webSockets } from "@libp2p/websockets";
Expand Down Expand Up @@ -77,7 +76,7 @@ export class TopologyNetworkNode {
},
metrics: this._config?.browser_metrics
? devToolsMetrics()
: prometheusMetrics(),
: undefined,
peerDiscovery: [
pubsubPeerDiscovery({
interval: 10_000,
Expand All @@ -87,8 +86,8 @@ export class TopologyNetworkNode {
list: this._config?.bootstrap_peers
? this._config.bootstrap_peers
: [
"/dns4/relay.droak.sh/tcp/443/wss/p2p/Qma3GsJmB47xYuyahPZPSadh1avvxfyYQwk8R3UnFrQ6aP",
],
"/dns4/relay.droak.sh/tcp/443/wss/p2p/Qma3GsJmB47xYuyahPZPSadh1avvxfyYQwk8R3UnFrQ6aP",
],
}),
],
services: {
Expand Down
32 changes: 0 additions & 32 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9c356c8

Please sign in to comment.