cleanup: correct typo in NewCSIVolumeroupJournal() function

The name of the function should be `NewCSIVolumeGroupJournal()`.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos 2024-03-14 09:27:11 +01:00 committed by mergify[bot]
parent 4f04748c87
commit c32dfc0ae6

View File

@ -84,8 +84,8 @@ type volumeGroupJournalConfig struct {
*Connection
}
// NewCSIVolumeroupJournal returns an instance of VolumeGroupJournal for groups.
func NewCSIVolumeroupJournal(suffix string) VolumeGroupJournal {
// NewCSIVolumeGroupJournal returns an instance of VolumeGroupJournal for groups.
func NewCSIVolumeGroupJournal(suffix string) VolumeGroupJournal {
return &volumeGroupJournalConfig{
Config: &Config{
csiDirectory: "csi.groups." + suffix,
@ -105,7 +105,7 @@ func (sgj *volumeGroupJournalConfig) SetNamespace(ns string) {
// NewCSIVolumeGroupJournalWithNamespace returns an instance of VolumeGroupJournal for
// volume groups using a predetermined namespace value.
func NewCSIVolumeGroupJournalWithNamespace(suffix, ns string) VolumeGroupJournal {
j := NewCSIVolumeroupJournal(suffix)
j := NewCSIVolumeGroupJournal(suffix)
j.SetNamespace(ns)
return j