Merge branch 'refs/heads/7311-add-peertask-foundation-code' into 7311-add-GetReceiptsFromPeerTask

pull/7638/head
Matilda Clerke 2 months ago
commit 0668083aec
  1. 2
      CHANGELOG.md
  2. 2
      plugin-api/build.gradle
  3. 4
      plugin-api/src/main/java/org/hyperledger/besu/plugin/services/metrics/LabelledGauge.java

@ -1,9 +1,9 @@
# Changelog
## [Unreleased]
- Added isLabelsObserved to LabelledGauge in plugin-api. Default implementation returns false.
### Breaking Changes
- Added isLabelsObserved to LabelledGauge in plugin-api. Implementing classes will need to also implement this method
### Upcoming Breaking Changes

@ -71,7 +71,7 @@ Calculated : ${currentHash}
tasks.register('checkAPIChanges', FileStateChecker) {
description = "Checks that the API for the Plugin-API project does not change without deliberate thought"
files = sourceSets.main.allJava.files
knownHash = 'VN2JB2HPpEUDQaDvd7QcMkmmgedasVChfA8tnSf1GHU='
knownHash = 'WRdnBaP05fItpWHYSFz/vBBlRWL3sLGqzR3tzd+pOkA='
}
check.dependsOn('checkAPIChanges')

@ -33,5 +33,7 @@ public interface LabelledGauge {
* @return true if the supplied labelValues are already observed by this LabelledGauge, false
* otherwise
*/
boolean isLabelsObserved(final String... labelValues);
default boolean isLabelsObserved(final String... labelValues) {
return false;
}
}

Loading…
Cancel
Save