From e3d3e7df6d83a8c40190a5d44fe6cd5a18fcf098 Mon Sep 17 00:00:00 2001 From: zhangliang Date: Thu, 16 Sep 2021 17:52:43 +0800 Subject: [PATCH] fix: example --- examples/hello/hello.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/hello/hello.go b/examples/hello/hello.go index 0f3a481..8d03c45 100644 --- a/examples/hello/hello.go +++ b/examples/hello/hello.go @@ -108,5 +108,5 @@ func NewSubscriber() core.IBaseNode { } return err } - return agent.NewGqlSubscriber("test", query, variables, handler) + return agent.NewGqlSubscriber("test", query).WithVariables(variables).WithCallback(handler) }