Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
60cfa2a2
"vscode:/vscode.git/clone" did not exist on "c3921599c80f692ec478bcf742481ddaa313f6dc"
Unverified
Commit
60cfa2a2
authored
Jun 18, 2025
by
曹家巧
Committed by
GitHub
Jun 18, 2025
Browse files
cache: fix comment function name in cache.go (#11110)
parent
55bbf3b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server/internal/cache/blob/cache.go
server/internal/cache/blob/cache.go
+1
-1
No files found.
server/internal/cache/blob/cache.go
View file @
60cfa2a2
...
@@ -59,7 +59,7 @@ type DiskCache struct {
...
@@ -59,7 +59,7 @@ type DiskCache struct {
testHookBeforeFinalWrite
func
(
f
*
os
.
File
)
testHookBeforeFinalWrite
func
(
f
*
os
.
File
)
}
}
// Put
String
is a convenience function for c.Put(d, strings.NewReader(s), int64(len(s))).
// Put
Bytes
is a convenience function for c.Put(d, strings.NewReader(s), int64(len(s))).
func
PutBytes
[
S
string
|
[]
byte
](
c
*
DiskCache
,
d
Digest
,
data
S
)
error
{
func
PutBytes
[
S
string
|
[]
byte
](
c
*
DiskCache
,
d
Digest
,
data
S
)
error
{
return
c
.
Put
(
d
,
bytes
.
NewReader
([]
byte
(
data
)),
int64
(
len
(
data
)))
return
c
.
Put
(
d
,
bytes
.
NewReader
([]
byte
(
data
)),
int64
(
len
(
data
)))
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment