redesign the default request id generator, replace random number to client port
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user