From 679e1f0453d7420d23d723f1d28dbd0565c4c292 Mon Sep 17 00:00:00 2001 From: donald1218 Date: Wed, 24 Apr 2024 12:40:07 +0000 Subject: [PATCH] fix: fix fuzzy test --- pkg/service/init.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/service/init.go b/pkg/service/init.go index 22b947b..8908c5a 100644 --- a/pkg/service/init.go +++ b/pkg/service/init.go @@ -29,6 +29,15 @@ type AmfApp struct { var AMF *AmfApp func GetApp() *AmfApp { + if AMF == nil { + amf := &AmfApp{ + // consumer: consumer, + + } + consumer, _ := consumer.NewConsumer(AMF) + amf.consumer = consumer + AMF = amf + } return AMF }