cicd: bump League Patch (#1998)

This commit is contained in:
OpenIM Bot
2024-03-05 10:51:55 +08:00
committed by GitHub
parent 33a61f29f2
commit e8377d9c2c
143 changed files with 229 additions and 271 deletions
+14
View File
@@ -1,3 +1,17 @@
// Copyright © 2024 OpenIM. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package checker
import (
+14
View File
@@ -1,3 +1,17 @@
// Copyright © 2024 OpenIM. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package main
import (
+14
View File
@@ -1,3 +1,17 @@
# Copyright © 2024 OpenIM. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
directory: ./
file_types:
- .go
+14
View File
@@ -1,3 +1,17 @@
// Copyright © 2024 OpenIM. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package config
import (
+1
View File
@@ -22,6 +22,7 @@ import (
"strings"
"github.com/OpenIMSDK/tools/errs"
"github.com/openimsdk/open-im-server/tools/formitychecker/config"
)
+28 -28
View File
@@ -33,35 +33,35 @@ import (
func main() {
var conf pkg.Config // Configuration object, '*' denotes required fields
// *Required*: Path for the task log file
flag.StringVar(&conf.TaskPath, "task", "take.txt", "Path for the task log file")
// Optional: Path for the progress log file
flag.StringVar(&conf.ProgressPath, "progress", "", "Path for the progress log file")
// Number of concurrent operations
flag.IntVar(&conf.Concurrency, "concurrency", 1, "Number of concurrent operations")
// Number of retry attempts
flag.IntVar(&conf.Retry, "retry", 1, "Number of retry attempts")
// Optional: Path for the temporary directory
flag.StringVar(&conf.TempDir, "temp", "", "Path for the temporary directory")
// Cache size in bytes (downloads move to disk when exceeded)
flag.Int64Var(&conf.CacheSize, "cache", 1024*1024*100, "Cache size in bytes")
// Request timeout in milliseconds
flag.Int64Var((*int64)(&conf.Timeout), "timeout", 5000, "Request timeout in milliseconds")
// *Required*: API endpoint for the IM service
flag.StringVar(&conf.Api, "api", "http://127.0.0.1:10002", "API endpoint for the IM service")
// IM administrator's user ID
flag.StringVar(&conf.UserID, "userID", "openIM123456", "IM administrator's user ID")
// *Required*: Path for the task log file
flag.StringVar(&conf.TaskPath, "task", "take.txt", "Path for the task log file")
// Secret for the IM configuration
flag.StringVar(&conf.Secret, "secret", "openIM123", "Secret for the IM configuration")
// Optional: Path for the progress log file
flag.StringVar(&conf.ProgressPath, "progress", "", "Path for the progress log file")
// Number of concurrent operations
flag.IntVar(&conf.Concurrency, "concurrency", 1, "Number of concurrent operations")
// Number of retry attempts
flag.IntVar(&conf.Retry, "retry", 1, "Number of retry attempts")
// Optional: Path for the temporary directory
flag.StringVar(&conf.TempDir, "temp", "", "Path for the temporary directory")
// Cache size in bytes (downloads move to disk when exceeded)
flag.Int64Var(&conf.CacheSize, "cache", 1024*1024*100, "Cache size in bytes")
// Request timeout in milliseconds
flag.Int64Var((*int64)(&conf.Timeout), "timeout", 5000, "Request timeout in milliseconds")
// *Required*: API endpoint for the IM service
flag.StringVar(&conf.Api, "api", "http://127.0.0.1:10002", "API endpoint for the IM service")
// IM administrator's user ID
flag.StringVar(&conf.UserID, "userID", "openIM123456", "IM administrator's user ID")
// Secret for the IM configuration
flag.StringVar(&conf.Secret, "secret", "openIM123", "Secret for the IM configuration")
flag.Parse()
if !filepath.IsAbs(conf.TaskPath) {