mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-30 22:11:07 +00:00 
			
		
		
		
	fixed some comments
This commit is contained in:
		
					parent
					
						
							
								379b0234eb
							
						
					
				
			
			
				commit
				
					
						c3fb34d5b4
					
				
			
		
					 3 changed files with 4 additions and 4 deletions
				
			
		|  | @ -23,7 +23,7 @@ type FederationHost struct { | |||
| 	Updated        timeutil.TimeStamp `xorm:"updated"` | ||||
| } | ||||
| 
 | ||||
| // Factory function for PersonID. Created struct is asserted to be valid | ||||
| // Factory function for FederationHost. Created struct is asserted to be valid. | ||||
| func NewFederationHost(nodeInfo NodeInfo, hostFqdn string) (FederationHost, error) { | ||||
| 	result := FederationHost{ | ||||
| 		HostFqdn: strings.ToLower(hostFqdn), | ||||
|  | @ -45,7 +45,7 @@ func (host FederationHost) Validate() []string { | |||
| 		result = append(result, fmt.Sprintf("HostFqdn has to be lower case but was: %v", host.HostFqdn)) | ||||
| 	} | ||||
| 	if !host.LatestActivity.IsZero() && host.LatestActivity.After(time.Now().Add(10*time.Minute)) { | ||||
| 		result = append(result, fmt.Sprintf("Latest Activity may not be far futurer: %v", host.LatestActivity)) | ||||
| 		result = append(result, fmt.Sprintf("Latest Activity cannot be in the far future: %v", host.LatestActivity)) | ||||
| 	} | ||||
| 
 | ||||
| 	return result | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue