This is an automated email from the ASF dual-hosted git repository.

liuhan pushed a commit to branch tmp_disable_reading
in repository https://gitbox.apache.org/repos/asf/skywalking-rover.git


The following commit(s) were added to refs/heads/tmp_disable_reading by this 
push:
     new 5097305  fix map update
5097305 is described below

commit 509730578d77ac58e2e1f1ec1192633ab2bba3e4
Author: mrproliu <[email protected]>
AuthorDate: Thu Dec 19 16:46:59 2024 +0800

    fix map update
---
 pkg/tools/buffer/buffer.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pkg/tools/buffer/buffer.go b/pkg/tools/buffer/buffer.go
index b2c19e9..1536905 100644
--- a/pkg/tools/buffer/buffer.go
+++ b/pkg/tools/buffer/buffer.go
@@ -20,6 +20,7 @@ package buffer
 import (
        "container/list"
        "errors"
+       "fmt"
        "io"
        "sync"
        "time"
@@ -85,6 +86,10 @@ type DataIDRange struct {
        IsToBufferReadFinished bool
 }
 
+func (r *DataIDRange) String() string {
+       return fmt.Sprintf("from: %d, to: %d, isToBufferReadFinished: %t", 
r.From, r.To, r.IsToBufferReadFinished)
+}
+
 type Buffer struct {
        dataEvents   *list.List
        detailEvents *list.List

Reply via email to