Removing unneeded NewProviderWithGroup function

This commit is contained in:
Kyle Wojtaszek
2021-01-27 14:43:00 -08:00
parent 30844eed75
commit 652abba813
2 changed files with 1 additions and 7 deletions
-6
View File
@@ -123,12 +123,6 @@ func NewProvider(name string, callback EnableCallback) (provider *Provider, err
return NewProviderWithOptions(name, WithCallback(callback))
}
// NewProviderWithGroup creates and registers a new ETW provider with a
// specificed group. The provider ID is generated based on the provider name.
func NewProviderWithGroup(name string, group guid.GUID, callback EnableCallback) (provider *Provider, err error) {
return NewProviderWithOptions(name, WithGroup(group), WithCallback(callback))
}
// Close unregisters the provider.
func (provider *Provider) Close() error {
if provider == nil {
+1 -1
View File
@@ -34,7 +34,7 @@ func main() {
}
}()
providerWithGroup, err := etw.NewProviderWithGroup("TestProviderWithGroup", group, callback)
providerWithGroup, err := etw.NewProviderWithOptions("TestProviderWithGroup", etw.WithGroup(group), etw.WithCallback(callback))
if err != nil {
logrus.Error(err)