mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 19:32:17 +08:00 
			
		
		
		
	fix: config read
This commit is contained in:
		
							parent
							
								
									4fa86bd3b5
								
							
						
					
					
						commit
						19cabd9e6b
					
				@ -19,6 +19,7 @@ import (
 | 
			
		||||
	"github.com/openimsdk/open-im-server/v3/internal/push"
 | 
			
		||||
	"github.com/openimsdk/open-im-server/v3/pkg/common/config"
 | 
			
		||||
	"github.com/openimsdk/open-im-server/v3/pkg/common/startrpc"
 | 
			
		||||
	"github.com/openimsdk/tools/system/program"
 | 
			
		||||
	"github.com/spf13/cobra"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@ -43,6 +44,7 @@ func NewPushRpcCmd() *PushRpcCmd {
 | 
			
		||||
		LocalCacheConfigFileName: &pushConfig.LocalCacheConfig,
 | 
			
		||||
		DiscoveryConfigFilename:  &pushConfig.Discovery,
 | 
			
		||||
	}
 | 
			
		||||
	ret.RootCmd = NewRootCmd(program.GetProcessName(), WithConfigMap(ret.configMap))
 | 
			
		||||
	ret.ctx = context.WithValue(context.Background(), "version", config.Version)
 | 
			
		||||
	ret.Command.RunE = func(cmd *cobra.Command, args []string) error {
 | 
			
		||||
		ret.pushConfig.FcmConfigPath = ret.ConfigPath()
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user