mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-29 04:12:25 -05:00 
			
		
		
		
	formatting
This commit is contained in:
		
					parent
					
						
							
								4d1acc477c
							
						
					
				
			
			
				commit
				
					
						c7c8edd982
					
				
			
		
					 2 changed files with 6 additions and 6 deletions
				
			
		|  | @ -125,7 +125,7 @@ func (m *nollamas) Serve(c *gin.Context) { | |||
| 	nonce := query.Get("nollamas_solution") | ||||
| 	if nonce == "" || len(nonce) > 20 { | ||||
| 
 | ||||
| 		// No attempted solution, just | ||||
| 		// An invalid solution string, just | ||||
| 		// present them with new challenge. | ||||
| 		m.renderChallenge(c, challenge) | ||||
| 		return | ||||
|  | @ -190,8 +190,8 @@ func (m *nollamas) token(c *gin.Context, hash hash.Hash) string { | |||
| 	_, _ = hash.Write([]byte{m.diff}) | ||||
| 
 | ||||
| 	// Also seed the generated input with | ||||
| 	// current time rounded to TTL, so with | ||||
| 	// our single comparison handles expiries. | ||||
| 	// current time rounded to TTL, so our | ||||
| 	// single comparison handles expiries. | ||||
| 	now := time.Now().Round(m.ttl).Unix() | ||||
| 	_, _ = hash.Write([]byte{ | ||||
| 		byte(now >> 56), | ||||
|  |  | |||
|  | @ -64,10 +64,10 @@ | |||
|         console.log('difficulty:', difficulty); | ||||
| 
 | ||||
|         // Prepare the worker with task function. | ||||
| 		const worker = new Worker(workerTaskURL); | ||||
|         const worker = new Worker(workerTaskURL); | ||||
|         worker.postMessage({ | ||||
| 			challenge: challenge, | ||||
| 			difficulty: difficulty, | ||||
|             challenge: challenge, | ||||
|             difficulty: difficulty, | ||||
|         }); | ||||
| 
 | ||||
|         // Set the main worker function. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue