Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Oct 29, 2024
1 parent 332134f commit bd74621
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Anoma/Effect/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ withSpawnAnomaClient body = do
{ std_out = CreatePipe
}

withSapwnAnomaNode ::
withSpawnAnomaNode ::
forall r a.
(Members '[EmbedIO, Logger, Error SimpleError, Process, Reader AnomaPath] r) =>
(Int -> Handle -> ProcessHandle -> Sem r a) ->
Sem r a
withSapwnAnomaNode body = withSystemTempFile "start.exs" $ \fp tmpHandle -> do
withSpawnAnomaNode body = withSystemTempFile "start.exs" $ \fp tmpHandle -> do
liftIO (B.hPutStr tmpHandle anomaStartExs)
hClose tmpHandle
cproc <- cprocess (toFilePath fp)
Expand Down Expand Up @@ -143,7 +143,7 @@ grpcCliProcess method = do

runAnoma :: forall r a. (Members '[Logger, EmbedIO, Error SimpleError] r) => AnomaPath -> Sem (Anoma ': r) a -> Sem r a
runAnoma anomapath body = runReader anomapath . runConcurrent . runProcess $
withSapwnAnomaNode $ \grpcport _nodeOut nodeH ->
withSpawnAnomaNode $ \grpcport _nodeOut nodeH ->
runReader (GrpcPort grpcport) $
withSpawnAnomaClient $ \_clientH -> do
(`interpret` inject body) $ \case
Expand Down

0 comments on commit bd74621

Please sign in to comment.