Skip to content

Commit

Permalink
nit: peer/network.go: remove refs to cross chain in comments (#1333)
Browse files Browse the repository at this point in the history
  • Loading branch information
darioush authored Sep 5, 2024
1 parent a42c7c1 commit 19fe7b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion peer/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (n *network) AppRequestFailed(ctx context.Context, nodeID ids.NodeID, reque
}

// calculateTimeUntilDeadline calculates the time until deadline and drops it if we missed he deadline to response.
// This function updates metrics for both app requests and cross chain requests.
// This function updates metrics for app requests.
// This is called by [AppRequest].
func calculateTimeUntilDeadline(deadline time.Time, stats stats.RequestHandlerStats) (time.Time, error) {
// calculate how much time is left until the deadline
Expand Down
2 changes: 1 addition & 1 deletion peer/stats/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/ava-labs/subnet-evm/metrics"
)

// RequestHandlerStats provides the interface for metrics for both app requests and cross chain requests.
// RequestHandlerStats provides the interface for metrics for app requests.
type RequestHandlerStats interface {
UpdateTimeUntilDeadline(duration time.Duration)
IncDeadlineDroppedRequest()
Expand Down

0 comments on commit 19fe7b9

Please sign in to comment.