mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-17 18:19:04 +02:00
mscluster: reuse control buffers and cut per-property allocations (#2673)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a8adb6d7bc
commit
930609b0e5
@@ -98,7 +98,7 @@ func (f *fakeAPI) api() *nativeAPI {
|
||||
return 2, nil
|
||||
},
|
||||
closeResource: func(uintptr) error { return nil },
|
||||
readResource: func(_ uintptr, resource *Resource, _ time.Time) error {
|
||||
readResource: func(_ uintptr, resource *Resource, _ *controlScratch, _ time.Time) error {
|
||||
resource.Values["State"] = 2
|
||||
resource.IdentityValid = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user