You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2019/12/10 02:17:12 UTC

[dubbo-go] branch develop updated: fix(common): use new uuid method

This is an automated email from the ASF dual-hosted git repository.

alexstocks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/develop by this push:
     new 7d55c0d  fix(common): use new uuid method
     new 3fe96d3  Merge pull request #277 from xujianhai666/fix-dep
7d55c0d is described below

commit 7d55c0dafb61db968007572e78099a042e05ccb5
Author: xujianhai666 <ze...@bytedance.com>
AuthorDate: Tue Dec 10 10:08:06 2019 +0800

    fix(common): use new uuid method
---
 common/url.go | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/common/url.go b/common/url.go
index 6fc7cd8..6e7a843 100644
--- a/common/url.go
+++ b/common/url.go
@@ -156,9 +156,7 @@ func WithToken(token string) option {
 		if len(token) > 0 {
 			value := token
 			if strings.ToLower(token) == "true" || strings.ToLower(token) == "default" {
-				if id, err := uuid.NewV4(); err == nil {
-					value = id.String()
-				}
+				value = uuid.NewV4().String()
 			}
 			url.SetParam(constant.TOKEN_KEY, value)
 		}