Skip to content

Commit 2903098

Browse files
authored
filepath -> path (#45)
Signed-off-by: Cassandra Coyle <[email protected]>
1 parent c082d68 commit 2903098

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

internal/key/key.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Licensed under the MIT License.
66
package key
77

88
import (
9-
"path/filepath"
9+
"path"
1010
"strconv"
1111
)
1212

@@ -38,30 +38,30 @@ func New(opts Options) *Key {
3838

3939
// JobKey returns the job key for the given job name.
4040
func (k *Key) JobKey(name string) string {
41-
return filepath.Join(k.namespace, "jobs", name)
41+
return path.Join(k.namespace, "jobs", name)
4242
}
4343

4444
// CounterKey returns the counter key for the given job name.
4545
func (k *Key) CounterKey(name string) string {
46-
return filepath.Join(k.namespace, "counters", name)
46+
return path.Join(k.namespace, "counters", name)
4747
}
4848

4949
// LeadershipNamespace returns the namespace key for the leadership keys.
5050
func (k *Key) LeadershipNamespace() string {
51-
return filepath.Join(k.namespace, "leadership")
51+
return path.Join(k.namespace, "leadership")
5252
}
5353

5454
// LeadershipKey returns the leadership key for this partition ID.
5555
func (k *Key) LeadershipKey() string {
56-
return filepath.Join(k.namespace, "leadership", k.partitionID)
56+
return path.Join(k.namespace, "leadership", k.partitionID)
5757
}
5858

5959
// JobNamespace returns the job namespace key.
6060
func (k *Key) JobNamespace() string {
61-
return filepath.Join(k.namespace, "jobs")
61+
return path.Join(k.namespace, "jobs")
6262
}
6363

6464
// JobName returns the job name from the given key.
6565
func (k *Key) JobName(key []byte) string {
66-
return filepath.Base(string(key))
66+
return path.Base(string(key))
6767
}

0 commit comments

Comments
 (0)