blob: 1e829360e577b6c07addb936102f547ffc48181a [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"runtime"
"v.io/v23"
"v.io/v23/security"
"v.io/x/lib/vlog"
"v.io/x/ref/lib/signals"
_ "v.io/x/ref/runtime/factories/generic"
)
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
ctx, shutdown := v23.Init()
defer shutdown()
ctx, _, err := v23.WithNewServer(ctx, "", NewStressService(), security.AllowEveryone())
if err != nil {
vlog.Fatalf("NewServer failed: %v", err)
}
<-signals.ShutdownOnSignals(ctx)
}