From a613ac109bd53528c867975d5fc6493c00d99fc2 Mon Sep 17 00:00:00 2001 From: thesai <1021828630@qq.com> Date: Thu, 16 May 2024 21:19:52 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E5=8C=BA=E6=AE=B5=E3=80=81?= =?UTF-8?q?Link=E3=80=81=E8=BF=90=E8=90=A5=E6=96=B9=E5=90=91/=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E4=B9=8B=E9=97=B4=E4=BA=92=E7=9B=B8=E8=BD=AC=E6=8D=A2?= =?UTF-8?q?=E7=9A=84=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repository/link.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/repository/link.go b/repository/link.go index 988d1ad..40f0c47 100644 --- a/repository/link.go +++ b/repository/link.go @@ -1,6 +1,7 @@ package repository import ( + "fmt" "joylink.club/rtsssimulation/repository/model/proto" ) @@ -145,6 +146,10 @@ func (l *LinkPosition) Offset() int64 { return l.offset } +func (l *LinkPosition) String() string { + return fmt.Sprintf("[LinkPosition:{%s-%d]", l.link.Id(), l.offset) +} + // link端口 type LinkPort struct { link *Link