Code cleanup

This commit is contained in:
2021-09-15 12:43:16 +02:00
parent 4d532ad765
commit 1fda2c4506

View File

@@ -36,19 +36,6 @@ func Init() {
// TODO load configs and init clients from the config file
xmppService = XMPPService{
Router: xmpp.NewRouter(),
// Configs: []xmpp.Config{
// {
// TransportConfiguration: xmpp.TransportConfiguration{
// Address: appConfig.AppConfig.Service.Address + ":" + appConfig.AppConfig.Service.Port,
// Domain: appConfig.AppConfig.Service.Domain,
// TLSConfig: &tls.Config{InsecureSkipVerify: true},
// },
// Jid: "admin@localhost",
// Credential: xmpp.Password("openadmin123"),
// StreamLogger: os.Stdout,
// Insecure: true,
// },
// },
}
xmppService.Router.HandleFunc("message", handleMessage)