forked from Botanical/BotanJS
Migrate old externs 7/x
This commit is contained in:
@@ -24,14 +24,16 @@ func main() {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
options := compilecache.Options{
|
||||
Workers: 2,
|
||||
QueueSize: 128,
|
||||
DisableCache: false,
|
||||
}
|
||||
|
||||
h := handler{
|
||||
r: r,
|
||||
jsCache: compilecache.New(
|
||||
closure.NewCompiler(), 2, 128,
|
||||
),
|
||||
cssCache: compilecache.New(
|
||||
css.NewEsbuildCompiler(), 2, 128,
|
||||
),
|
||||
r: r,
|
||||
jsCache: compilecache.New(closure.NewCompiler(), options),
|
||||
cssCache: compilecache.New(css.NewEsbuildCompiler(), options),
|
||||
}
|
||||
http.HandleFunc("/", h.index)
|
||||
log.Printf("botan-api listening on %s", *addr)
|
||||
|
||||
Reference in New Issue
Block a user