Commit 9d14f76
Improve CollectorRegistry#unregister() (#335)
- In 'unregister', remove the collector before its names, so
we do instructions in the reverse order compare to 'register'.
It is consistent with 'clear'.
- So we do 1 lookup in collectors hash map instead of 2.
Signed-off-by: Cyril Martin <[email protected]>1 parent c4ef25c commit 9d14f76
File tree
1 file changed
+2
-2
lines changed- simpleclient/src/main/java/io/prometheus/client
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments