redesign the default request id generator, replace random number to client port

This commit is contained in:
MaysWind
2024-08-09 00:07:32 +08:00
parent a4849fa4f0
commit e4faf64ea3
7 changed files with 128 additions and 44 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ package requestid
// RequestIdGenerator is common request generator interface
type RequestIdGenerator interface {
GenerateRequestId(clientIpAddr string) string
GenerateRequestId(clientIpAddr string, clientPort uint16) string
GetCurrentServerUniqId() uint16
GetCurrentInstanceUniqId() uint16
}