diff --git a/pkg/http/client.go b/pkg/http/client.go index d65bd116..6af18377 100644 --- a/pkg/http/client.go +++ b/pkg/http/client.go @@ -1,6 +1,6 @@ -// Copyright 2023 Michael Li . All rights reserved. -// Use of this source code is governed by Apache License 2.0 that -// can be found in the LICENSE file. +// Copyright 2023 ROC. All rights reserved. +// Use of this source code is governed by a MIT style +// license that can be found in the LICENSE file. package http @@ -55,11 +55,11 @@ func (s *wormClient) Do(req *http.Request, fn ResponseFn) { item := &requestItem{req, fn} select { case s.requestCh <- item: - logrus.Debugln("simepleClient.Do send request item by requestCh chan") + // send request item by requestCh chan default: select { case s.requestTempCh <- item: - logrus.Debugln("simepleClient.Do send request item by requestTempCh chan") + // send request item by requestTempCh chan" default: go func() { s.do(item) diff --git a/pkg/http/http.go b/pkg/http/http.go index 08876448..86e5035b 100644 --- a/pkg/http/http.go +++ b/pkg/http/http.go @@ -1,6 +1,6 @@ -// Copyright 2023 Michael Li . All rights reserved. -// Use of this source code is governed by Apache License 2.0 that -// can be found in the LICENSE file. +// Copyright 2023 ROC. All rights reserved. +// Use of this source code is governed by a MIT style +// license that can be found in the LICENSE file. // package http contain some custom help function for std http library. diff --git a/pkg/http/http_suite_test.go b/pkg/http/http_suite_test.go index ef72f36b..b2594602 100644 --- a/pkg/http/http_suite_test.go +++ b/pkg/http/http_suite_test.go @@ -1,6 +1,6 @@ -// Copyright 2023 Michael Li . All rights reserved. -// Use of this source code is governed by Apache License 2.0 that -// can be found in the LICENSE file. +// Copyright 2023 ROC. All rights reserved. +// Use of this source code is governed by a MIT style +// license that can be found in the LICENSE file. package http_test diff --git a/pkg/http/mux.go b/pkg/http/mux.go index 46a76b02..caf184b4 100644 --- a/pkg/http/mux.go +++ b/pkg/http/mux.go @@ -1,6 +1,6 @@ -// Copyright 2023 Michael Li . All rights reserved. -// Use of this source code is governed by Apache License 2.0 that -// can be found in the LICENSE file. +// Copyright 2023 ROC. All rights reserved. +// Use of this source code is governed by a MIT style +// license that can be found in the LICENSE file. package http diff --git a/pkg/http/mux_test.go b/pkg/http/mux_test.go index e67d5f47..eb6db568 100644 --- a/pkg/http/mux_test.go +++ b/pkg/http/mux_test.go @@ -1,6 +1,6 @@ -// Copyright 2023 Michael Li . All rights reserved. -// Use of this source code is governed by Apache License 2.0 that -// can be found in the LICENSE file. +// Copyright 2023 ROC. All rights reserved. +// Use of this source code is governed by a MIT style +// license that can be found in the LICENSE file. package http