mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-05 05:12:45 +08:00
* pb * fix: Modifying other fields while setting IsPrivateChat does not take effect * fix: quote message error revoke * refactoring scheduled tasks * refactoring scheduled tasks * refactoring scheduled tasks * refactoring scheduled tasks * refactoring scheduled tasks * refactoring scheduled tasks * upgrading pkg tools * fix * fix * optimize log output * feat: support GetLastMessage * feat: support GetLastMessage * feat: s3 switch * feat: s3 switch
24 lines
438 B
Go
24 lines
438 B
Go
package main
|
|
|
|
import (
|
|
"flag"
|
|
"fmt"
|
|
"github.com/openimsdk/open-im-server/v3/tools/s3/internal"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
var (
|
|
name string
|
|
config string
|
|
)
|
|
flag.StringVar(&name, "name", "", "old previous storage name")
|
|
flag.StringVar(&config, "config", "", "config directory")
|
|
flag.Parse()
|
|
if err := internal.Main(config, name); err != nil {
|
|
fmt.Fprintln(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|
|
fmt.Fprintln(os.Stdout, "success")
|
|
}
|