Skip to content

Commit

Permalink
Merge pull request #30 from KiraCore/fix/interx_init
Browse files Browse the repository at this point in the history
fix: added missed code for interx init and start
  • Loading branch information
MrLutik authored Jun 2, 2024
2 parents 4766941 + 2d06a1d commit cdacb10
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add compose.yml
git commit -m "feat(cidi_auto): Update compose.yml" \
git commit -m "fix(cidi_auto): Update compose.yml" \
-m "Update image versions to ${{ steps.create_tag.outputs.new_tag }}"
git tag -a v${{ steps.create_tag.outputs.new_tag }} -m "Update image versions to ${{ steps.create_tag.outputs.new_tag }}"
git tag -a ${{ steps.create_tag.outputs.new_tag }} -m "Update image versions to ${{ steps.create_tag.outputs.new_tag }}"
git push
9 changes: 9 additions & 0 deletions src/shidai/internal/commands/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"net/http"
"strconv"

interxhandler "github.com/kiracore/sekin/src/shidai/internal/interx_handler"
mnemonicmanager "github.com/kiracore/sekin/src/shidai/internal/mnemonic_manager"
sekaihandler "github.com/kiracore/sekin/src/shidai/internal/sekai_handler"
configconstructor "github.com/kiracore/sekin/src/shidai/internal/sekai_handler/config_constructor"
Expand Down Expand Up @@ -101,6 +102,14 @@ func handleJoinCommand(args map[string]interface{}) (string, error) {
return "", fmt.Errorf("unable to start sekai: %w", err)
}

err = interxhandler.InitInterx(ctx, masterMnemonic)
if err != nil {
return "", fmt.Errorf("unable to init interx: %w", err)
}
err = interxhandler.StartInterx()
if err != nil {
return "", fmt.Errorf("unable to start interx: %w", err)
}
// Example of using the IP, and similar for other fields
// This function would contain the logic specific to handling a join command
return fmt.Sprintf("Join command processed for IP: %s", ip), nil
Expand Down

0 comments on commit cdacb10

Please sign in to comment.