Skip to content

Commit cea71ae

Browse files
authored
chore: deals: remove forgotten graphsync references (#12084)
1 parent 4828757 commit cea71ae

File tree

2 files changed

+0
-80
lines changed

2 files changed

+0
-80
lines changed

metrics/metrics.go

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -74,22 +74,6 @@ var (
7474
PeerCount = stats.Int64("peer/count", "Current number of FIL peers", stats.UnitDimensionless)
7575
APIRequestDuration = stats.Float64("api/request_duration_ms", "Duration of API requests", stats.UnitMilliseconds)
7676

77-
// graphsync
78-
79-
GraphsyncReceivingPeersCount = stats.Int64("graphsync/receiving_peers", "number of peers we are receiving graphsync data from", stats.UnitDimensionless)
80-
GraphsyncReceivingActiveCount = stats.Int64("graphsync/receiving_active", "number of active receiving graphsync transfers", stats.UnitDimensionless)
81-
GraphsyncReceivingCountCount = stats.Int64("graphsync/receiving_pending", "number of pending receiving graphsync transfers", stats.UnitDimensionless)
82-
GraphsyncReceivingTotalMemoryAllocated = stats.Int64("graphsync/receiving_total_allocated", "amount of block memory allocated for receiving graphsync data", stats.UnitBytes)
83-
GraphsyncReceivingTotalPendingAllocations = stats.Int64("graphsync/receiving_pending_allocations", "amount of block memory on hold being received pending allocation", stats.UnitBytes)
84-
GraphsyncReceivingPeersPending = stats.Int64("graphsync/receiving_peers_pending", "number of peers we can't receive more data from cause of pending allocations", stats.UnitDimensionless)
85-
86-
GraphsyncSendingPeersCount = stats.Int64("graphsync/sending_peers", "number of peers we are sending graphsync data to", stats.UnitDimensionless)
87-
GraphsyncSendingActiveCount = stats.Int64("graphsync/sending_active", "number of active sending graphsync transfers", stats.UnitDimensionless)
88-
GraphsyncSendingCountCount = stats.Int64("graphsync/sending_pending", "number of pending sending graphsync transfers", stats.UnitDimensionless)
89-
GraphsyncSendingTotalMemoryAllocated = stats.Int64("graphsync/sending_total_allocated", "amount of block memory allocated for sending graphsync data", stats.UnitBytes)
90-
GraphsyncSendingTotalPendingAllocations = stats.Int64("graphsync/sending_pending_allocations", "amount of block memory on hold from sending pending allocation", stats.UnitBytes)
91-
GraphsyncSendingPeersPending = stats.Int64("graphsync/sending_peers_pending", "number of peers we can't send more data to cause of pending allocations", stats.UnitDimensionless)
92-
9377
// chain
9478
ChainNodeHeight = stats.Int64("chain/node_height", "Current Height of the node", stats.UnitDimensionless)
9579
ChainNodeHeightExpected = stats.Int64("chain/node_height_expected", "Expected Height of the node", stats.UnitDimensionless)
@@ -580,56 +564,6 @@ var (
580564
Aggregation: view.Sum(),
581565
}
582566

583-
// graphsync
584-
GraphsyncReceivingPeersCountView = &view.View{
585-
Measure: GraphsyncReceivingPeersCount,
586-
Aggregation: view.LastValue(),
587-
}
588-
GraphsyncReceivingActiveCountView = &view.View{
589-
Measure: GraphsyncReceivingActiveCount,
590-
Aggregation: view.LastValue(),
591-
}
592-
GraphsyncReceivingCountCountView = &view.View{
593-
Measure: GraphsyncReceivingCountCount,
594-
Aggregation: view.LastValue(),
595-
}
596-
GraphsyncReceivingTotalMemoryAllocatedView = &view.View{
597-
Measure: GraphsyncReceivingTotalMemoryAllocated,
598-
Aggregation: view.LastValue(),
599-
}
600-
GraphsyncReceivingTotalPendingAllocationsView = &view.View{
601-
Measure: GraphsyncReceivingTotalPendingAllocations,
602-
Aggregation: view.LastValue(),
603-
}
604-
GraphsyncReceivingPeersPendingView = &view.View{
605-
Measure: GraphsyncReceivingPeersPending,
606-
Aggregation: view.LastValue(),
607-
}
608-
GraphsyncSendingPeersCountView = &view.View{
609-
Measure: GraphsyncSendingPeersCount,
610-
Aggregation: view.LastValue(),
611-
}
612-
GraphsyncSendingActiveCountView = &view.View{
613-
Measure: GraphsyncSendingActiveCount,
614-
Aggregation: view.LastValue(),
615-
}
616-
GraphsyncSendingCountCountView = &view.View{
617-
Measure: GraphsyncSendingCountCount,
618-
Aggregation: view.LastValue(),
619-
}
620-
GraphsyncSendingTotalMemoryAllocatedView = &view.View{
621-
Measure: GraphsyncSendingTotalMemoryAllocated,
622-
Aggregation: view.LastValue(),
623-
}
624-
GraphsyncSendingTotalPendingAllocationsView = &view.View{
625-
Measure: GraphsyncSendingTotalPendingAllocations,
626-
Aggregation: view.LastValue(),
627-
}
628-
GraphsyncSendingPeersPendingView = &view.View{
629-
Measure: GraphsyncSendingPeersPending,
630-
Aggregation: view.LastValue(),
631-
}
632-
633567
// rcmgr
634568
RcmgrAllowConnView = &view.View{
635569
Measure: RcmgrAllowConn,
@@ -710,19 +644,6 @@ var views = []*view.View{
710644
PeerCountView,
711645
APIRequestDurationView,
712646

713-
GraphsyncReceivingPeersCountView,
714-
GraphsyncReceivingActiveCountView,
715-
GraphsyncReceivingCountCountView,
716-
GraphsyncReceivingTotalMemoryAllocatedView,
717-
GraphsyncReceivingTotalPendingAllocationsView,
718-
GraphsyncReceivingPeersPendingView,
719-
GraphsyncSendingPeersCountView,
720-
GraphsyncSendingActiveCountView,
721-
GraphsyncSendingCountCountView,
722-
GraphsyncSendingTotalMemoryAllocatedView,
723-
GraphsyncSendingTotalPendingAllocationsView,
724-
GraphsyncSendingPeersPendingView,
725-
726647
RcmgrAllowConnView,
727648
RcmgrBlockConnView,
728649
RcmgrAllowStreamView,

node/builder.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ const (
9999

100100
RunHelloKey
101101
RunChainExchangeKey
102-
RunChainGraphsync
103102
RunPeerMgrKey
104103

105104
HandleIncomingBlocksKey

0 commit comments

Comments
 (0)