From 531676c5c3a2fcbb124b8aa51b82ce3e44874013 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Wed, 7 Jun 2023 22:38:02 -0600 Subject: [PATCH] Fixed bug and typo --- resource.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resource.go b/resource.go index 0021b54..b163400 100644 --- a/resource.go +++ b/resource.go @@ -314,6 +314,7 @@ func GQLEventChildren(p graphql.ResolveParams) (interface{}, error) { }) } + var gql_list_event * graphql.List = nil func GQLListEvent() * graphql.List { if gql_list_event == nil { @@ -343,7 +344,7 @@ func GQLInterfaceEvent() * graphql.Interface { }) if gql_list_event == nil { - gql_list_event = graphql.NewList(GQLInterfaceEvent()) + gql_list_event = graphql.NewList(gql_interface_event) } gql_interface_event.AddFieldConfig("ID", &graphql.Field{ @@ -609,7 +610,7 @@ func (server * GQLServer) Init(abort chan error) bool { http_done.Wait() break case signal:=<-server.signal: - log.Logf("gql", "GOROUTINE_SIGNAL fot %s: %+v", server.ID(), signal) + log.Logf("gql", "GOROUTINE_SIGNAL for %s: %+v", server.ID(), signal) // Take signals to resource and send to GQL subscriptions } }