This is an automated email from the ASF dual-hosted git repository.
pbacsko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-core.git
The following commit(s) were added to refs/heads/master by this push:
new 46ce58d6 [YUNIKORN-2450] Rename updateLowestId to updateLowestID,
TestLoggerIds to TestLoggerIDs (#973)
46ce58d6 is described below
commit 46ce58d61f5a5b3aa0786bb93226eb58913cd44d
Author: YUN SUN <[email protected]>
AuthorDate: Tue Sep 24 12:37:27 2024 +0200
[YUNIKORN-2450] Rename updateLowestId to updateLowestID, TestLoggerIds to
TestLoggerIDs (#973)
Closes: #973
Signed-off-by: Peter Bacsko <[email protected]>
---
pkg/events/event_ringbuffer.go | 4 ++--
pkg/log/logger_test.go | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pkg/events/event_ringbuffer.go b/pkg/events/event_ringbuffer.go
index 72a824d1..7fbf1fd5 100644
--- a/pkg/events/event_ringbuffer.go
+++ b/pkg/events/event_ringbuffer.go
@@ -203,7 +203,7 @@ func newEventRingBuffer(capacity uint64) *eventRingBuffer {
}
// called from Resize(), this function updates the lowest event id available
in the buffer
-func (e *eventRingBuffer) updateLowestId(beginSize, endSize uint64) {
+func (e *eventRingBuffer) updateLowestID(beginSize, endSize uint64) {
// if buffer size is increasing, lowestId stays the same
if beginSize < endSize {
return
@@ -238,7 +238,7 @@ func (e *eventRingBuffer) Resize(newSize uint64) {
endIndex := (startIndex + numEventsToCopy - 1) % e.capacity
prevLowestId := e.getLowestID()
- e.updateLowestId(initialSize, newSize)
+ e.updateLowestID(initialSize, newSize)
newLowestId := e.getLowestID()
if prevLowestId != newLowestId {
diff --git a/pkg/log/logger_test.go b/pkg/log/logger_test.go
index 48160d05..0a12a58b 100644
--- a/pkg/log/logger_test.go
+++ b/pkg/log/logger_test.go
@@ -35,7 +35,7 @@ var logFile string
var iterations = 100000
-func TestLoggerIds(t *testing.T) {
+func TestLoggerIDs(t *testing.T) {
_ = Log(Test)
// validate logger count
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]