MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Persist

Method Persist

main.go:136–152  ·  view source on GitHub ↗
(wr io.Writer)

Source from the content-addressed store, hash-verified

134 }
135 return &snap{s: s}, nil
136}
137
138func restore(rd io.Reader) (interface{}, error) {
139 return nil, restoreSnapshot(storageDriver(), rd)
140}
141
142func connOpened(addr string) (context interface{}, accept bool) {
143 atomic.AddInt64(&respClientNum, 1)
144 return nil, true
145}
146
147func connClosed(context interface{}, addr string) {
148 atomic.AddInt64(&respClientNum, -1)
149 return
150}

Callers

nothing calls this directly

Calls 6

FirstMethod · 0.95
NextMethod · 0.95
KeyMethod · 0.95
ValueMethod · 0.95
NewIteratorMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected