From 0f71c6823b8743853e489fc53e9fd319baebe1d9 Mon Sep 17 00:00:00 2001
From: lcx <linchenxuanxuan@gmail.com>
Date: Tue, 9 Apr 2024 17:28:33 +0800
Subject: [PATCH] fixed: GetRequestsInFlight return copies lock value

---
 session/session.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/session/session.go b/session/session.go
index 5d95b141..55f772e6 100644
--- a/session/session.go
+++ b/session/session.go
@@ -853,8 +853,8 @@ func (s *sessionImpl) HasRequestsInFlight() bool {
 	return len(s.requestsInFlight.m) != 0
 }
 
-func (s *sessionImpl) GetRequestsInFlight() ReqInFlight {
-	return s.requestsInFlight
+func (s *sessionImpl) GetRequestsInFlight() *ReqInFlight {
+	return &s.requestsInFlight
 }
 
 func (s *sessionImpl) SetRequestInFlight(reqID string, reqData string, inFlight bool) {