From 3c7b40063dbba777d27efd2fa4c7093d5507dca6 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 5 Dec 2017 08:19:32 -0600 Subject: call OnActivate after plugin crash, update example (#7940) --- plugin/example_hello_user_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugin/example_hello_user_test.go') diff --git a/plugin/example_hello_user_test.go b/plugin/example_hello_user_test.go index 4aefbc5f5..989cca0f2 100644 --- a/plugin/example_hello_user_test.go +++ b/plugin/example_hello_user_test.go @@ -12,9 +12,10 @@ type HelloUserPlugin struct { api plugin.API } -func (p *HelloUserPlugin) OnActivate(api plugin.API) { +func (p *HelloUserPlugin) OnActivate(api plugin.API) error { // Just save api for later when we need to look up users. p.api = api + return nil } func (p *HelloUserPlugin) ServeHTTP(w http.ResponseWriter, r *http.Request) { -- cgit v1.2.3-1-g7c22