Changeset 42 in code for trunk/lib/peers.ml


Ignore:
Timestamp:
Dec 15, 2022, 9:25:18 PM (2 years ago)
Author:
fox
Message:

Preliminary support for cross-domain references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/peers.ml

    r31 r42  
    11let text_dir = Filename.concat (File_store.txtdir ()) "peers"
    22
    3 type t = { path: string; locations: string list }
     3type t = { path: string; pack: Header_pack.t }
    44
    55let fold fn init = match Sys.readdir text_dir with
     
    1414                        | true -> match Header_pack.of_string (File_store.to_string pack_path) with
    1515                                | 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 }
    1717                        end else init
    1818                in
Note: See TracChangeset for help on using the changeset viewer.