MCPcopy
hub / github.com/chrislusf/glow / Close

Method Close

netchan/store/rotating_file_store.go:161–165  ·  view source on GitHub ↗

Close implements io.Closer, and closes the current logfile.

()

Source from the content-addressed store, hash-verified

159
160// Close implements io.Closer, and closes the current logfile.
161func (l *RotatingFileStore) Close() error {
162 l.mu.Lock()
163 defer l.mu.Unlock()
164 return l.close()
165}
166
167// close closes the file if it is open.
168func (l *RotatingFileStore) close() error {

Callers 15

DestroyMethod · 0.95
mainFunction · 0.80
SourceMethod · 0.80
TextFileMethod · 0.80
SliceMethod · 0.80
RunTaskMethod · 0.80
SaveBytesToFileMethod · 0.80
SaveTextToFileMethod · 0.80
receiveTopicFromMethod · 0.80
closeMethod · 0.80
NewDirectSendChannelFunction · 0.80

Calls 1

closeMethod · 0.95

Tested by 3

acceptAndWriteFunction · 0.64
TestDialWithTlsConfigFunction · 0.64
TestDialWithoutTlsConfigFunction · 0.64