Changeset 42 in code for trunk/lib/peers.ml
- Timestamp:
- Dec 15, 2022, 9:25:18 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/peers.ml
r31 r42 1 1 let text_dir = Filename.concat (File_store.txtdir ()) "peers" 2 2 3 type t = { path: string; locations: string list }3 type t = { path: string; pack: Header_pack.t } 4 4 5 5 let fold fn init = match Sys.readdir text_dir with … … 14 14 | true -> match Header_pack.of_string (File_store.to_string pack_path) with 15 15 | Error s -> Printf.eprintf "%s %s\n" s pack_path; init 16 | Ok p -> fn init { path; locations = Header_pack.(p.info.locations)}16 | Ok pack -> fn init { path; pack } 17 17 end else init 18 18 in
Note:
See TracChangeset
for help on using the changeset viewer.