gofmt
This commit is contained in:
@@ -32,8 +32,8 @@ const (
|
|||||||
// A pool to share commonly-used widgets across pages to reduce
|
// A pool to share commonly-used widgets across pages to reduce
|
||||||
// creation of new widgets and memory allocations.
|
// creation of new widgets and memory allocations.
|
||||||
type WidgetPool struct {
|
type WidgetPool struct {
|
||||||
mut sync.Mutex
|
mut sync.Mutex
|
||||||
pools [][]pooledWidget
|
pools [][]pooledWidget
|
||||||
}
|
}
|
||||||
|
|
||||||
type pooledWidget struct {
|
type pooledWidget struct {
|
||||||
@@ -43,7 +43,7 @@ type pooledWidget struct {
|
|||||||
|
|
||||||
func NewWidgetPool(ctx context.Context) *WidgetPool {
|
func NewWidgetPool(ctx context.Context) *WidgetPool {
|
||||||
p := &WidgetPool{
|
p := &WidgetPool{
|
||||||
pools: make([][]pooledWidget, numWidgetTypes),
|
pools: make([][]pooledWidget, numWidgetTypes),
|
||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
t := time.NewTicker(2 * time.Minute)
|
t := time.NewTicker(2 * time.Minute)
|
||||||
|
|||||||
Reference in New Issue
Block a user