This commit is contained in:
Dmitry Zuikov 2024-09-16 11:39:42 +03:00
parent 13c05f4c1c
commit 221b10016e
1 changed files with 6 additions and 7 deletions

View File

@ -738,18 +738,15 @@ fixmeRefChanInit = do
, mkSym (show $ pretty (AsBase58 refchan)) , mkSym (show $ pretty (AsBase58 refchan))
] ]
let theirReaderKeyClause = maybe1 rk nil $ \(KeyringEntry pk _ _) -> do let theirReaderKeyClause = maybe1 rk ";; reader ..."$ \(KeyringEntry pk _ _) -> do
mkList @C [ mkSym "reader", mkSym (show $ pretty (AsBase58 pk) ) ] pretty $ mkList @C [ mkSym "reader", mkSym (show $ pretty (AsBase58 pk) ) ]
let theirAuthorClause = mkList @C [ mkSym "author", mkSym (show $ pretty (AsBase58 signK) ) ] let theirAuthorClause = mkList @C [ mkSym "author", mkSym (show $ pretty (AsBase58 signK) ) ]
let content = line let content = line
<> vcat [ pretty refChanClause ]
<> line
<> line
<> note <> note
<> line <> line
<> vcat [ pretty theirReaderKeyClause <> vcat [ theirReaderKeyClause
, pretty theirAuthorClause , pretty theirAuthorClause
] ]
@ -758,7 +755,9 @@ fixmeRefChanInit = do
show content show content
appendFile confFile $ show $ appendFile confFile $ show $
line <> line
<> vcat [ pretty refChanClause ]
<> line <>
pretty (mkList @C [ mkSym "source", mkSym ( "." </> rchanFile ) ]) pretty (mkList @C [ mkSym "source", mkSym ( "." </> rchanFile ) ])
notice $ green "refchan added" <+> pretty (AsBase58 refchan) notice $ green "refchan added" <+> pretty (AsBase58 refchan)