veyron/veyron2/rt: Remove rt.R()/rt.Init().
There are no more calls.
Change-Id: Ic9864775798bb863e5797afe9194ef4f0e4ea7a4
diff --git a/runtimes/google/rt/signal_test.go b/runtimes/google/rt/signal_test.go
index 2d819a9..e235e0b 100644
--- a/runtimes/google/rt/signal_test.go
+++ b/runtimes/google/rt/signal_test.go
@@ -62,7 +62,11 @@
// Make sure that we use "google" runtime implementation in this
// package even though we have to use the public API which supports
// arbitrary runtime implementations.
- rt.Init(options.Profile{&myprofile{}})
+ r, err := rt.New(options.Profile{&myprofile{}})
+ if err != nil {
+ return err
+ }
+ defer r.Cleanup()
simpleEchoProgram(stdin, stdout)
return nil
}
diff --git a/security/agent/agentd/main.go b/security/agent/agentd/main.go
index 3ca5ee0..5871e7f 100644
--- a/security/agent/agentd/main.go
+++ b/security/agent/agentd/main.go
@@ -58,7 +58,12 @@
vlog.Fatalf("failed to create new principal from dir(%s): %v", dir, err)
}
- runtime := rt.Init(options.RuntimePrincipal{p})
+ runtime, err := rt.New(options.RuntimePrincipal{p})
+ if err != nil {
+ panic("Could not initialize runtime: " + err.Error())
+ }
+ defer runtime.Cleanup()
+
log := runtime.Logger()
if err = os.Setenv(agent.FdVarName, "3"); err != nil {
diff --git a/services/mgmt/build/buildd/testdata/integration_test.go b/services/mgmt/build/buildd/testdata/integration_test.go
index 8902104..630a22f 100644
--- a/services/mgmt/build/buildd/testdata/integration_test.go
+++ b/services/mgmt/build/buildd/testdata/integration_test.go
@@ -14,13 +14,8 @@
"veyron.io/veyron/veyron/lib/testutil/integration"
"veyron.io/veyron/veyron/lib/testutil/security"
_ "veyron.io/veyron/veyron/profiles"
- "veyron.io/veyron/veyron2/rt"
)
-func init() {
- rt.Init()
-}
-
var binPkgs = []string{
"veyron.io/veyron/veyron/services/mgmt/build/buildd",
"veyron.io/veyron/veyron/tools/build",