mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Un-gofmt ./vendor
We can't be modifying this except to update from upstream. Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
This commit is contained in:
		
							parent
							
								
									b68ddcec21
								
							
						
					
					
						commit
						e8ffc2eee0
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -92,7 +92,7 @@ func Purge(maxAge int) int {
 | 
			
		|||
		datat = make(map[*http.Request]int64)
 | 
			
		||||
	} else {
 | 
			
		||||
		min := time.Now().Unix() - int64(maxAge)
 | 
			
		||||
		for r := range data {
 | 
			
		||||
		for r, _ := range data {
 | 
			
		||||
			if datat[r] < min {
 | 
			
		||||
				clear(r)
 | 
			
		||||
				count++
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -96,8 +96,8 @@ func TestRouteMatchers(t *testing.T) {
 | 
			
		|||
		method = "GET"
 | 
			
		||||
		headers = map[string]string{"X-Requested-With": "XMLHttpRequest"}
 | 
			
		||||
		resultVars = map[bool]map[string]string{
 | 
			
		||||
			true:  {"var1": "www", "var2": "product", "var3": "42"},
 | 
			
		||||
			false: {},
 | 
			
		||||
			true:  map[string]string{"var1": "www", "var2": "product", "var3": "42"},
 | 
			
		||||
			false: map[string]string{},
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -110,8 +110,8 @@ func TestRouteMatchers(t *testing.T) {
 | 
			
		|||
		method = "POST"
 | 
			
		||||
		headers = map[string]string{"Content-Type": "application/json"}
 | 
			
		||||
		resultVars = map[bool]map[string]string{
 | 
			
		||||
			true:  {"var4": "google", "var5": "product", "var6": "42"},
 | 
			
		||||
			false: {},
 | 
			
		||||
			true:  map[string]string{"var4": "google", "var5": "product", "var6": "42"},
 | 
			
		||||
			false: map[string]string{},
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue