diff options
| author | 2026-03-29 10:22:19 +0000 | |
|---|---|---|
| committer | 2026-03-29 10:22:19 +0000 | |
| commit | cdac77529a3f7416843b1d455d413c9b0f21cfff (patch) | |
| tree | 274775de36c302716f43efdaffbb00ca5f3070f9 /network/protocol/v0v1/server/advertise.go | |
| parent | object/id: Split files (diff) | |
| signature | No signature | |
object/id: Zero is a property of the algorithm v0.1.140
Diffstat (limited to 'network/protocol/v0v1/server/advertise.go')
| -rw-r--r-- | network/protocol/v0v1/server/advertise.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/network/protocol/v0v1/server/advertise.go b/network/protocol/v0v1/server/advertise.go index 30468d1c..8ec7dfd9 100644 --- a/network/protocol/v0v1/server/advertise.go +++ b/network/protocol/v0v1/server/advertise.go @@ -3,8 +3,6 @@ package server import ( "fmt" "strings" - - objectid "codeberg.org/lindenii/furgit/object/id" ) // AdvertiseRefs writes one server ref advertisement. @@ -20,7 +18,7 @@ func (session *Session) AdvertiseRefs(ad Advertisement, capabilityTokens []strin refs := sortAdvertisedRefs(ad.Refs) if len(refs) == 0 { - line := fmt.Sprintf("%s capabilities^{}\x00%s\n", objectid.Zero(session.opts.Algorithm), capList) + line := fmt.Sprintf("%s capabilities^{}\x00%s\n", session.opts.Algorithm.Zero(), capList) err := session.enc.WriteData([]byte(line)) if err != nil { |
