mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Bump unrolled/render to v1.1.0 (#15581)
v1.1.0 has improved buffer pooling
This commit is contained in:
		
							
								
								
									
										8
									
								
								vendor/github.com/unrolled/render/buffer.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/unrolled/render/buffer.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -2,9 +2,6 @@ package render | ||||
|  | ||||
| import "bytes" | ||||
|  | ||||
| // bufPool represents a reusable buffer pool for executing templates into. | ||||
| var bufPool *BufferPool | ||||
|  | ||||
| // BufferPool implements a pool of bytes.Buffers in the form of a bounded channel. | ||||
| // Pulled from the github.com/oxtoacart/bpool package (Apache licensed). | ||||
| type BufferPool struct { | ||||
| @@ -39,8 +36,3 @@ func (bp *BufferPool) Put(b *bytes.Buffer) { | ||||
| 	default: // Discard the buffer if the pool is full. | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Initialize buffer pool for writing templates into. | ||||
| func init() { | ||||
| 	bufPool = NewBufferPool(64) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user