Skip to content

Commit

Permalink
[issue apache#778] Build instance name with nanosecond
Browse files Browse the repository at this point in the history
  • Loading branch information
chaiyuxuan committed Feb 24, 2022
1 parent 782b09c commit 4ae77cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ type ClientOptions struct {

func (opt *ClientOptions) ChangeInstanceNameToPID() {
if opt.InstanceName == "DEFAULT" {
opt.InstanceName = strconv.Itoa(os.Getpid())
opt.InstanceName = fmt.Sprintf("%d#%d", os.Getpid(), time.Now().Nanosecond())
}
}

Expand Down

0 comments on commit 4ae77cf

Please sign in to comment.