mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Rewrite old lock error msg
This commit is contained in:
		
							parent
							
								
									5bc5c5dc1b
								
							
						
					
					
						commit
						4243885246
					
				
							
								
								
									
										7
									
								
								api.go
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								api.go
									
									
									
									
									
								
							@ -298,13 +298,8 @@ func (h *Headscale) PollNetMapHandler(c *gin.Context) {
 | 
				
			|||||||
		Str("handler", "PollNetMap").
 | 
							Str("handler", "PollNetMap").
 | 
				
			||||||
		Str("id", c.Param("id")).
 | 
							Str("id", c.Param("id")).
 | 
				
			||||||
		Str("machine", m.Name).
 | 
							Str("machine", m.Name).
 | 
				
			||||||
		Msg("Locking poll mutex")
 | 
							Msg("Storing update channel")
 | 
				
			||||||
	h.clientsPolling.Store(m.ID, update)
 | 
						h.clientsPolling.Store(m.ID, update)
 | 
				
			||||||
	log.Trace().
 | 
					 | 
				
			||||||
		Str("handler", "PollNetMap").
 | 
					 | 
				
			||||||
		Str("id", c.Param("id")).
 | 
					 | 
				
			||||||
		Str("machine", m.Name).
 | 
					 | 
				
			||||||
		Msg("Unlocking poll mutex")
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	data, err := h.getMapResponse(mKey, req, m)
 | 
						data, err := h.getMapResponse(mKey, req, m)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user