improve
This commit is contained in:
		
							parent
							
								
									7ce1f535f5
								
							
						
					
					
						commit
						286e174943
					
				@ -64,9 +64,10 @@ func doSelfUpdate() {
 | 
				
			|||||||
		// latest version is the same as current version. It means current binary is up to date.
 | 
							// latest version is the same as current version. It means current binary is up to date.
 | 
				
			||||||
		log.Println("Current binary is the latest version", version)
 | 
							log.Println("Current binary is the latest version", version)
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
 | 
							log.Println("Prev version", dao.Version)
 | 
				
			||||||
 | 
							dao.Version = latest.Version.String()
 | 
				
			||||||
		client.Register(ctx, monitor.GetHost().PB())
 | 
							client.Register(ctx, monitor.GetHost().PB())
 | 
				
			||||||
		log.Println("Successfully updated to version", latest.Version)
 | 
							log.Println("Successfully updated to version", latest.Version)
 | 
				
			||||||
		log.Println("Release note:\n", latest.ReleaseNotes)
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user