Skip to content

Commit

Permalink
fix: example
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangliang committed Sep 16, 2021
1 parent f85de65 commit e3d3e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/hello/hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit e3d3e7d

Please sign in to comment.