mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-27 05:52:29 +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 * fix: GetUsersOnline * feat: SendBusinessNotification supported configuration parameters * feat: SendBusinessNotification supported configuration parameters * feat: SendBusinessNotification supported configuration parameters * feat: seq conversion failed without exiting
		
			
				
	
	
		
			27 lines
		
	
	
		
			511 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			511 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package main
 | |
| 
 | |
| import (
 | |
| 	"flag"
 | |
| 	"fmt"
 | |
| 	"os"
 | |
| 	"time"
 | |
| 
 | |
| 	"github.com/openimsdk/open-im-server/v3/tools/seq/internal"
 | |
| )
 | |
| 
 | |
| func main() {
 | |
| 	var (
 | |
| 		config string
 | |
| 		second int
 | |
| 	)
 | |
| 	flag.StringVar(&config, "c", "", "config directory")
 | |
| 	flag.IntVar(&second, "sec", 3600*24, "delayed deletion of the original seq key after conversion")
 | |
| 	flag.Parse()
 | |
| 	if err := internal.Main(config, time.Duration(second)*time.Second); err != nil {
 | |
| 		fmt.Println("seq task", err)
 | |
| 		os.Exit(1)
 | |
| 		return
 | |
| 	}
 | |
| 	fmt.Println("seq task success!")
 | |
| }
 |